From a0c5f9451443ec70865928efd63913ec3d242eb9 Mon Sep 17 00:00:00 2001 From: Taso Date: Thu, 1 Apr 2021 13:38:38 -0400 Subject: [PATCH] tweak(phone/match): Added type safety to match state --- phone/src/apps/match/hooks/state.ts | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/phone/src/apps/match/hooks/state.ts b/phone/src/apps/match/hooks/state.ts index 2d86410..dd4c255 100644 --- a/phone/src/apps/match/hooks/state.ts +++ b/phone/src/apps/match/hooks/state.ts @@ -1,7 +1,8 @@ import { atom } from 'recoil'; +import { FormattedMatch, FormattedProfile } from '../../../../../typings/match'; export const matchState = { - profiles: atom({ + profiles: atom({ key: 'profiles', default: null, }), @@ -9,19 +10,19 @@ export const matchState = { key: 'errorLoadingProfiles', default: false, }), - matches: atom({ + matches: atom({ key: 'matches', default: null, }), - errorLoadingMatches: atom({ + errorLoadingMatches: atom({ key: 'errorLoadingMatches', default: false, }), - myProfile: atom({ + myProfile: atom({ key: 'myProfile', default: null, }), - noProfileExists: atom({ + noProfileExists: atom({ key: 'noProfileExists', default: false, }),