diff --git a/src/context/intermediate/Intermediate.tsx b/src/context/intermediate/Intermediate.tsx index 906e4c95..bfc96235 100644 --- a/src/context/intermediate/Intermediate.tsx +++ b/src/context/intermediate/Intermediate.tsx @@ -128,8 +128,11 @@ interface Props { children: Children; } +export let __thisIsAHack; + export default function Intermediate(props: Props) { const [screen, openScreen] = useState({ id: "none" }); + __thisIsAHack = openScreen; const settings = useApplicationState().settings; const history = useHistory(); diff --git a/src/context/modals/index.tsx b/src/context/modals/index.tsx index 7c370496..6f9c06a8 100644 --- a/src/context/modals/index.tsx +++ b/src/context/modals/index.tsx @@ -13,6 +13,7 @@ import { determineLink } from "../../lib/links"; import { getApplicationState, useApplicationState } from "../../mobx/State"; import { history } from "../history"; +import { __thisIsAHack } from "../intermediate/Intermediate"; // import { determineLink } from "../../lib/links"; import Changelog from "./components/Changelog"; import Clipboard from "./components/Clipboard"; @@ -172,8 +173,7 @@ class ModalControllerExtended extends ModalController { switch (link.type) { case "profile": { - // TODO: port Profile - // openScreen({ id: "profile", user_id: link.id }); + __thisIsAHack({ id: "profile", user_id: link.id }); break; } case "navigate": {