about summary refs log tree commit diff
path: root/src/state/modals
diff options
context:
space:
mode:
authorSamuel Newman <mozzius@protonmail.com>2025-07-30 21:05:45 +0300
committerGitHub <noreply@github.com>2025-07-30 11:05:45 -0700
commit25e60548c41949e7ad45d043cbdf8b8cfa3e036a (patch)
treeca5b9327203c98ce573f2c73340b61bc83c0dea1 /src/state/modals
parentfade51e9eba84cfba1a8797aafc4958ab3764deb (diff)
downloadvoidsky-25e60548c41949e7ad45d043cbdf8b8cfa3e036a.tar.zst
Mark old components as deprecated (#8747)
* mark a bunch of stuff as deprecated

* mark s as deprecated (serverence reference????)

* rm type import
Diffstat (limited to 'src/state/modals')
-rw-r--r--src/state/modals/index.tsx9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/state/modals/index.tsx b/src/state/modals/index.tsx
index a2cc63745..7b6f5d7b3 100644
--- a/src/state/modals/index.tsx
+++ b/src/state/modals/index.tsx
@@ -43,6 +43,9 @@ export interface ChangePasswordModal {
   name: 'change-password'
 }
 
+/**
+ * @deprecated DO NOT ADD NEW MODALS
+ */
 export type Modal =
   // Account
   | DeleteAccountModal
@@ -125,10 +128,16 @@ export function Provider({children}: React.PropsWithChildren<{}>) {
   )
 }
 
+/**
+ * @deprecated use the dialog system from `#/components/Dialog.tsx`
+ */
 export function useModals() {
   return React.useContext(ModalContext)
 }
 
+/**
+ * @deprecated use the dialog system from `#/components/Dialog.tsx`
+ */
 export function useModalControls() {
   return React.useContext(ModalControlContext)
 }