From 498e76b535d58e435a7d528687196df36845b39a Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Fri, 4 Mar 2022 16:46:50 +0000 Subject: [PATCH] fix(home): fix the create group button closes #546 --- src/pages/home/Home.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/pages/home/Home.tsx b/src/pages/home/Home.tsx index 8a57658a..ef66bca9 100644 --- a/src/pages/home/Home.tsx +++ b/src/pages/home/Home.tsx @@ -21,9 +21,9 @@ import { isTouchscreenDevice } from "../../lib/isTouchscreenDevice"; import { useApplicationState } from "../../mobx/State"; +import { useIntermediate } from "../../context/intermediate/Intermediate"; import { AppContext } from "../../context/revoltjs/RevoltClient"; -import Tooltip from "../../components/common/Tooltip"; import { PageHeader } from "../../components/ui/Header"; import CategoryButton from "../../components/ui/fluent/CategoryButton"; import wideSVG from "/assets/wide.svg"; @@ -42,6 +42,7 @@ const Overlay = styled.div` `; export default observer(() => { + const { openScreen } = useIntermediate(); const client = useContext(AppContext); const state = useApplicationState(); @@ -93,7 +94,13 @@ export default observer(() => {
- + + openScreen({ + id: "special_input", + type: "create_group", + }) + }> } @@ -102,7 +109,7 @@ export default observer(() => { }> - +