From e15e5af1262947c96f26592c876e2f724f0e8e82 Mon Sep 17 00:00:00 2001 From: ran Date: Fri, 12 Jan 2024 23:31:22 +0800 Subject: [PATCH] Add todo about setMobile --- client/src/app.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/app.tsx b/client/src/app.tsx index d5b8647..653286f 100644 --- a/client/src/app.tsx +++ b/client/src/app.tsx @@ -20,7 +20,7 @@ function App() { const params = useParams() const gameId = "g/" + params.owner + "/" + params.repo - // TODO: + // TODO: Modifying setMobile will not change 'layout', and the setMobile function may not exist in the future. const [mobile, setMobile] = React.useState() const layout = useAppSelector((state) => state.preferences.layout); const changeLayout = (layout: PreferencesState["layout"]) => dispatch(setLayout(layout))