about summary refs log tree commit diff
path: root/src/lib/hooks/useCustomPalette.ts
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2024-11-08 22:42:18 +0000
committerGitHub <noreply@github.com>2024-11-08 22:42:18 +0000
commit5da3f29498fda9ab1181df19a718e37099cb2cf6 (patch)
tree4989300fe333edc3ad1c12c7b0d03e6ff5112ee3 /src/lib/hooks/useCustomPalette.ts
parente8a03058bb993bda993e78d24877884d39666d63 (diff)
downloadvoidsky-5da3f29498fda9ab1181df19a718e37099cb2cf6.tar.zst
[Settings] Ungate, and remove old settings (#6144)
* move export car dialog

* move disableemail2fadialog

* delete old settings screens

* fix type error

* Update Navigation.tsx

* Delete AccountDropdownBtn.tsx

* remove old change handle modal

* delete add app paswords

* forgot to actually delete the change handle modal
Diffstat (limited to 'src/lib/hooks/useCustomPalette.ts')
-rw-r--r--src/lib/hooks/useCustomPalette.ts14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/lib/hooks/useCustomPalette.ts b/src/lib/hooks/useCustomPalette.ts
deleted file mode 100644
index 5691ea79b..000000000
--- a/src/lib/hooks/useCustomPalette.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import React from 'react'
-
-import {choose} from '#/lib/functions'
-import {useTheme} from '#/lib/ThemeContext'
-
-export function useCustomPalette<T>({light, dark}: {light: T; dark: T}) {
-  const theme = useTheme()
-  return React.useMemo(() => {
-    return choose<T, Record<string, T>>(theme.colorScheme, {
-      dark,
-      light,
-    })
-  }, [theme.colorScheme, dark, light])
-}