Feature / Add working notifications with only twitter for now (#102)

* Add working notifications with only twitter for now

* feat(notification-bar): I didnt copy from NP

* Make default browser visibility true

* feat(notifications): Collapse when no more notifications after closing one
This commit is contained in:
J Francisco Rader authored and GitHub committed 2021-02-18 19:21:07 -05:00
1 parent 11af8bfb5a
commit 40ec19a349
19 files changed
+497 -153

No files matched your search

+10 -2
View File
@@ -22,7 +22,15 @@ export const settingsState = atom({
effects_UNSTABLE: [localStorageEffect('settings')],
});
interface IPhoneSettings {
wallpaper: string;
frame: string;
theme: string;
zoom: number;
ringtone: string;
ringtoneVol: number;
}
export const useSettings = () => {
const [settings, setSettings] = useRecoilState(settingsState);
return [settings, setSettings];
return useRecoilState<IPhoneSettings>(settingsState);
};