From 53e015a2fe9f480d8c0342b57ddc05466b306290 Mon Sep 17 00:00:00 2001 From: joneugster Date: Mon, 23 Oct 2023 18:00:42 +0200 Subject: [PATCH] cleanup app.tsx --- client/src/app.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/app.tsx b/client/src/app.tsx index b0ef13c..e944825 100644 --- a/client/src/app.tsx +++ b/client/src/app.tsx @@ -18,15 +18,11 @@ export const GameIdContext = React.createContext(undefined); function App() { const params = useParams() const gameId = "g/" + params.owner + "/" + params.repo - - // TODO: Make mobileLayout be changeable in settings - // TODO: Handle resize Events const {width, height} = useWindowDimensions() const [mobile, setMobile] = React.useState(width < 800) - // On mobile, there are multiple pages on the welcome page to switch between + // For mobile only const openedIntro = useSelector(selectOpenedIntro(gameId)) - // On mobile, there are multiple pages to switch between const [pageNumber, setPageNumber] = React.useState(openedIntro ? 1 : 0) return (