working on resetting everything up with updated versions
This commit is contained in:
19
frontend/src/state/state.js
Normal file
19
frontend/src/state/state.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import { atom } from 'jotai'
|
||||
import { atomWithReset } from 'jotai/utils'
|
||||
|
||||
|
||||
export const serverConfigAtom = atom({})
|
||||
|
||||
// Size and menu handling
|
||||
export const menuOpenedAtom = atom(false)
|
||||
|
||||
// Pages state
|
||||
export const activePageAtom = atom({})
|
||||
|
||||
// Filters for all pages to pass back and forth
|
||||
export const locationFilterAtom = atom({})
|
||||
export const roomFilterAtom = atom({})
|
||||
|
||||
// Notification history and notification stack
|
||||
export const notificationHistory = atom([])
|
||||
export const notifications = atomWithReset([])
|
Reference in New Issue
Block a user