From 5af6e4936def7713f83d34f770f5c1718c6fd8f5 Mon Sep 17 00:00:00 2001 From: Christopher Date: Sat, 9 Jan 2021 20:09:30 +0100 Subject: [PATCH] feat(settings): utilze useLocalStorage --- .../apps/settings/components/SettingsApp.tsx | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/phone/src/apps/settings/components/SettingsApp.tsx b/phone/src/apps/settings/components/SettingsApp.tsx index 0cd327b..1604349 100644 --- a/phone/src/apps/settings/components/SettingsApp.tsx +++ b/phone/src/apps/settings/components/SettingsApp.tsx @@ -24,10 +24,7 @@ import { } from '@material-ui/icons'; import { ListSubheader } from '@material-ui/core'; -import useLocalStorage, { - writeStorage, - getStorage, -} from '../../../os/phone/hooks/useLocalStorage'; +import useLocalStorage from '../../../os/phone/hooks/useLocalStorage'; const SubHeaderComp = (props: { text: string }) => ( @@ -72,7 +69,7 @@ export const SettingsApp = () => { // TODO: These new settings all work - useEffect(() => {}, [getStorage]); + useEffect(() => {}, [theme]); const [openMenu, closeMenu, ContextMenu, isMenuOpen] = useContextMenu(); return ( @@ -87,7 +84,7 @@ export const SettingsApp = () => { /> } @@ -107,28 +104,28 @@ export const SettingsApp = () => { }> } /> } /> } /> }