From d15273b7b1adbc227fcd5cb0faca822d59f74eaa Mon Sep 17 00:00:00 2001 From: Taso Date: Thu, 1 Apr 2021 13:45:10 -0400 Subject: [PATCH] tweak(phone/gen-state): Added type-safety to gen phone global state --- phone/src/os/phone/hooks/state.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/phone/src/os/phone/hooks/state.ts b/phone/src/os/phone/hooks/state.ts index 522d618..e35284d 100644 --- a/phone/src/os/phone/hooks/state.ts +++ b/phone/src/os/phone/hooks/state.ts @@ -1,19 +1,20 @@ import { atom } from 'recoil'; +import { IServerConfig } from '../../../../../typings/config'; export const phoneState = { - visibility: atom({ + visibility: atom({ key: 'phoneVisibility', default: false, }), - phoneConfig: atom({ + phoneConfig: atom({ key: 'phoneConfig', - default: undefined, + default: null, }), - phoneReady: atom({ + phoneReady: atom({ key: 'phoneReady', default: false, }), - phoneTime: atom({ + phoneTime: atom({ key: 'phoneTime', default: null, }),