refactor: extract dark theme to recoil state
This commit is contained in:
parent
d3eaaaaa9d
commit
07c6bf53a9
2 changed files with 7 additions and 2 deletions
|
@ -5,3 +5,8 @@ export const userState = atom<MeUser | null>({
|
|||
key: "userState",
|
||||
default: null,
|
||||
});
|
||||
|
||||
export const themeState = atom<boolean>({
|
||||
key: "themeState",
|
||||
default: false,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue