diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-08-14 01:12:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-14 01:12:31 +0300 |
commit | b2c56cbd6dfa9af576f947dd41a0d33376b184d1 (patch) | |
tree | acdf57b6e7e2860c89b20b1dc239fe20521cb1c4 /src/state/shell/progress-guide.tsx | |
parent | 275fece3e3de0bd09377a33813bcfe35e352874b (diff) | |
download | voidsky-b2c56cbd6dfa9af576f947dd41a0d33376b184d1.tar.zst |
Add displayName to contexts (#8814)
Diffstat (limited to 'src/state/shell/progress-guide.tsx')
-rw-r--r-- | src/state/shell/progress-guide.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/state/shell/progress-guide.tsx b/src/state/shell/progress-guide.tsx index 19687267c..fa60f6ca7 100644 --- a/src/state/shell/progress-guide.tsx +++ b/src/state/shell/progress-guide.tsx @@ -5,7 +5,7 @@ import {useLingui} from '@lingui/react' import {logEvent} from '#/lib/statsig/statsig' import { ProgressGuideToast, - ProgressGuideToastRef, + type ProgressGuideToastRef, } from '#/components/ProgressGuide/Toast' import { usePreferencesQuery, @@ -45,6 +45,7 @@ export type ProgressGuide = | undefined const ProgressGuideContext = React.createContext<ProgressGuide>(undefined) +ProgressGuideContext.displayName = 'ProgressGuideContext' const ProgressGuideControlContext = React.createContext<{ startProgressGuide(guide: ProgressGuideName): void @@ -55,6 +56,7 @@ const ProgressGuideControlContext = React.createContext<{ endProgressGuide: () => {}, captureAction: (_action: ProgressGuideAction, _count = 1) => {}, }) +ProgressGuideControlContext.displayName = 'ProgressGuideControlContext' export function useProgressGuide(guide: ProgressGuideName) { const ctx = React.useContext(ProgressGuideContext) |