Add todo about setMobile

pull/181/head
ran 2 years ago
parent 8c93b3c5b3
commit e15e5af126

@ -20,7 +20,7 @@ function App() {
const params = useParams() const params = useParams()
const gameId = "g/" + params.owner + "/" + params.repo 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<boolean>() const [mobile, setMobile] = React.useState<boolean>()
const layout = useAppSelector((state) => state.preferences.layout); const layout = useAppSelector((state) => state.preferences.layout);
const changeLayout = (layout: PreferencesState["layout"]) => dispatch(setLayout(layout)) const changeLayout = (layout: PreferencesState["layout"]) => dispatch(setLayout(layout))

Loading…
Cancel
Save