mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
Move to TanStack Start from Next.js (#184)
This commit is contained in:
3
web/app/store/any-store.ts
Normal file
3
web/app/store/any-store.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { atom } from "jotai"
|
||||
|
||||
export const commandPaletteOpenAtom = atom(false)
|
||||
3
web/app/store/keyboard-manager.ts
Normal file
3
web/app/store/keyboard-manager.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import { atom } from "jotai"
|
||||
|
||||
export const keyboardDisableSourcesAtom = atom<Set<string>>(new Set<string>())
|
||||
7
web/app/store/link.ts
Normal file
7
web/app/store/link.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { atom } from "jotai"
|
||||
import { atomWithStorage } from "jotai/utils"
|
||||
|
||||
export const linkSortAtom = atomWithStorage("sort", "manual")
|
||||
export const linkEditIdAtom = atom<string | null>(null)
|
||||
export const linkLearningStateSelectorAtom = atom(false)
|
||||
export const linkOpenPopoverForIdAtom = atom<string | null>(null)
|
||||
7
web/app/store/sidebar.ts
Normal file
7
web/app/store/sidebar.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { atom } from "jotai"
|
||||
|
||||
export const isCollapseAtom = atom(false)
|
||||
export const toggleCollapseAtom = atom(
|
||||
(get) => get(isCollapseAtom),
|
||||
(get, set) => set(isCollapseAtom, !get(isCollapseAtom)),
|
||||
)
|
||||
Reference in New Issue
Block a user