Reorganize context/states/selectors in dedicated folders (#1205)

* Reorganize context/states/selectors in dedicated folders

* linter
This commit is contained in:
Weiko
2023-08-14 15:08:47 -07:00
committed by GitHub
parent cd3a32e555
commit 7d900ad1c6
134 changed files with 251 additions and 320 deletions

View File

@ -1,6 +0,0 @@
import { atom } from 'recoil';
export const authFlowUserEmailState = atom<string>({
key: 'authFlowUserEmailState',
default: '',
});

View File

@ -1,11 +0,0 @@
import { selector } from 'recoil';
import { currentUserState } from './currentUserState';
export const isAuthenticatedState = selector<boolean>({
key: 'isAuthenticatedState',
get: ({ get }) => {
const user = get(currentUserState);
return !!user;
},
});

View File

@ -1,6 +0,0 @@
import { atom } from 'recoil';
export const isAuthenticatingState = atom<boolean>({
key: 'isAuthenticatingState',
default: true,
});