From 25e60548c41949e7ad45d043cbdf8b8cfa3e036a Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Wed, 30 Jul 2025 21:05:45 +0300 Subject: Mark old components as deprecated (#8747) * mark a bunch of stuff as deprecated * mark s as deprecated (serverence reference????) * rm type import --- src/state/modals/index.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/state/modals/index.tsx') 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) } -- cgit 1.4.1