about summary refs log tree commit diff
path: root/src/state/modals
diff options
context:
space:
mode:
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)
 }