about summary refs log tree commit diff
path: root/src/view/shell/desktop/LeftNav.tsx
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-10 08:46:45 -0600
committerEric Bailey <git@esb.lol>2023-11-10 08:46:45 -0600
commitb0c9cce5c3ea9246fbc2f71ac64c10c5252ec9a4 (patch)
tree510b14357ceff341a79c8947b9ea9b7e1fe4464d /src/view/shell/desktop/LeftNav.tsx
parent742f53d1ecfc5060b7e6fc0cea0f8729d2e9b1b5 (diff)
downloadvoidsky-b0c9cce5c3ea9246fbc2f71ac64c10c5252ec9a4.tar.zst
Follow conventions for query, use isDirty flag in session store to avoid unneccessary writes
Diffstat (limited to 'src/view/shell/desktop/LeftNav.tsx')
-rw-r--r--src/view/shell/desktop/LeftNav.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/view/shell/desktop/LeftNav.tsx b/src/view/shell/desktop/LeftNav.tsx
index 3a0c0c95d..45be67d2c 100644
--- a/src/view/shell/desktop/LeftNav.tsx
+++ b/src/view/shell/desktop/LeftNav.tsx
@@ -41,7 +41,7 @@ import {router} from '../../../routes'
 import {makeProfileLink} from 'lib/routes/links'
 import {useLingui} from '@lingui/react'
 import {Trans, msg} from '@lingui/macro'
-import {useGetProfile} from '#/data/useGetProfile'
+import {useProfileQuery} from '#/state/queries/profile'
 import {useSession} from '#/state/session'
 
 const ProfileCard = observer(function ProfileCardImpl() {
@@ -50,7 +50,7 @@ const ProfileCard = observer(function ProfileCardImpl() {
     isLoading,
     isError,
     data: profile,
-  } = useGetProfile({did: currentAccount!.did})
+  } = useProfileQuery({did: currentAccount!.did})
   const {isDesktop} = useWebMediaQueries()
   const size = 48