diff options
author | Paul Frazee <pfrazee@gmail.com> | 2024-04-30 21:06:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-30 21:06:51 -0700 |
commit | 31cb3e54222afc0b56e9d3e7997e2229797ff11e (patch) | |
tree | d837a8d0f7e08b1d97e22b77c69bdc93bad2554c /src/components/ProfileHoverCard | |
parent | 39807a86309ccfeeffbd054808c0e78e42ff940e (diff) | |
download | voidsky-31cb3e54222afc0b56e9d3e7997e2229797ff11e.tar.zst |
Performance improvements: structural sharing & moderation opts context (#3785)
* Fix: correctly apply structural sharing to preferences object * Move moderation opts into a context * Fix import * Remove log * Pass userdid directly * Pass moderationPrefs directly
Diffstat (limited to 'src/components/ProfileHoverCard')
-rw-r--r-- | src/components/ProfileHoverCard/index.web.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx index d1b00d522..a22436879 100644 --- a/src/components/ProfileHoverCard/index.web.tsx +++ b/src/components/ProfileHoverCard/index.web.tsx @@ -9,7 +9,7 @@ import {makeProfileLink} from '#/lib/routes/links' import {sanitizeDisplayName} from '#/lib/strings/display-names' import {sanitizeHandle} from '#/lib/strings/handles' import {pluralize} from '#/lib/strings/helpers' -import {useModerationOpts} from '#/state/queries/preferences' +import {useModerationOpts} from '#/state/preferences/moderation-opts' import {usePrefetchProfileQuery, useProfileQuery} from '#/state/queries/profile' import {useSession} from '#/state/session' import {useProfileShadow} from 'state/cache/profile-shadow' |