mirror of
https://github.com/revoltchat/revite.git
synced 2024-11-25 08:30:58 -05:00
fix: temporarily hack in mention to profile flow
This commit is contained in:
parent
6755217ad2
commit
f685352963
2 changed files with 5 additions and 2 deletions
|
@ -128,8 +128,11 @@ interface Props {
|
||||||
children: Children;
|
children: Children;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export let __thisIsAHack;
|
||||||
|
|
||||||
export default function Intermediate(props: Props) {
|
export default function Intermediate(props: Props) {
|
||||||
const [screen, openScreen] = useState<Screen>({ id: "none" });
|
const [screen, openScreen] = useState<Screen>({ id: "none" });
|
||||||
|
__thisIsAHack = openScreen;
|
||||||
const settings = useApplicationState().settings;
|
const settings = useApplicationState().settings;
|
||||||
const history = useHistory();
|
const history = useHistory();
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,7 @@ import { determineLink } from "../../lib/links";
|
||||||
import { getApplicationState, useApplicationState } from "../../mobx/State";
|
import { getApplicationState, useApplicationState } from "../../mobx/State";
|
||||||
|
|
||||||
import { history } from "../history";
|
import { history } from "../history";
|
||||||
|
import { __thisIsAHack } from "../intermediate/Intermediate";
|
||||||
// import { determineLink } from "../../lib/links";
|
// import { determineLink } from "../../lib/links";
|
||||||
import Changelog from "./components/Changelog";
|
import Changelog from "./components/Changelog";
|
||||||
import Clipboard from "./components/Clipboard";
|
import Clipboard from "./components/Clipboard";
|
||||||
|
@ -172,8 +173,7 @@ class ModalControllerExtended extends ModalController<Modal> {
|
||||||
|
|
||||||
switch (link.type) {
|
switch (link.type) {
|
||||||
case "profile": {
|
case "profile": {
|
||||||
// TODO: port Profile
|
__thisIsAHack({ id: "profile", user_id: link.id });
|
||||||
// openScreen({ id: "profile", user_id: link.id });
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case "navigate": {
|
case "navigate": {
|
||||||
|
|
Loading…
Reference in a new issue