diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-04-22 21:13:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-22 11:13:13 -0700 |
commit | dba0bd83799275fb5ced42f9f938233a4385ff0d (patch) | |
tree | 4d5eefdc771339809d9ee797788e24072d94fe3a /src/view/com/profile/ProfileMenu.tsx | |
parent | a770f5635b549f2a87ffeaedd031dfe8e37b58c8 (diff) | |
download | voidsky-dba0bd83799275fb5ced42f9f938233a4385ff0d.tar.zst |
move dev mode hook (#8270)
Diffstat (limited to 'src/view/com/profile/ProfileMenu.tsx')
-rw-r--r-- | src/view/com/profile/ProfileMenu.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/profile/ProfileMenu.tsx b/src/view/com/profile/ProfileMenu.tsx index 97a43c753..43ec44834 100644 --- a/src/view/com/profile/ProfileMenu.tsx +++ b/src/view/com/profile/ProfileMenu.tsx @@ -13,7 +13,6 @@ import {toShareUrl} from '#/lib/strings/url-helpers' import {logger} from '#/logger' import {type Shadow} from '#/state/cache/types' import {useModalControls} from '#/state/modals' -import {useDevModeEnabled} from '#/state/preferences/dev-mode' import { RQKEY as profileQueryKey, useProfileBlockMutationQueue, @@ -48,6 +47,7 @@ import * as Prompt from '#/components/Prompt' import {useFullVerificationState} from '#/components/verification' import {VerificationCreatePrompt} from '#/components/verification/VerificationCreatePrompt' import {VerificationRemovePrompt} from '#/components/verification/VerificationRemovePrompt' +import {useDevMode} from '#/storage/hooks/dev-mode' let ProfileMenu = ({ profile, @@ -65,7 +65,7 @@ let ProfileMenu = ({ const isBlocked = profile.viewer?.blocking || profile.viewer?.blockedBy const isFollowingBlockedAccount = isFollowing && isBlocked const isLabelerAndNotBlocked = !!profile.associated?.labeler && !isBlocked - const [devModeEnabled] = useDevModeEnabled() + const [devModeEnabled] = useDevMode() const verification = useFullVerificationState({profile}) const [queueMute, queueUnmute] = useProfileMuteMutationQueue(profile) |