We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 23e3bf5 commit e060f61Copy full SHA for e060f61
1 file changed
packages/shared/src/components/ProfileMenu/sections/AccountSection.tsx
@@ -4,14 +4,19 @@ import type { ReactElement } from 'react';
4
import { ProfileSection } from '../ProfileSection';
5
import { CreditCardIcon, InviteIcon, SettingsIcon } from '../../icons';
6
import { webappUrl } from '../../../lib/constants';
7
+import { useLazyModal } from '../../../hooks/useLazyModal';
8
+import { LazyModal } from '../../modals/common/types';
9
10
export const AccountSection = (): ReactElement => {
11
+ const { openModal } = useLazyModal();
12
+
13
return (
14
<ProfileSection
15
items={[
16
{
17
title: 'Settings',
- href: `${webappUrl}account/profile`,
18
+ // href: `${webappUrl}account/profile`,
19
+ onClick: () => openModal({ type: LazyModal.UserSettings }),
20
icon: <SettingsIcon />,
21
},
22
0 commit comments