Skip to content

Commit e060f61

Browse files
committed
fix(tmp): open customize on profile menu settings
1 parent 23e3bf5 commit e060f61

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

packages/shared/src/components/ProfileMenu/sections/AccountSection.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@ import type { ReactElement } from 'react';
44
import { ProfileSection } from '../ProfileSection';
55
import { CreditCardIcon, InviteIcon, SettingsIcon } from '../../icons';
66
import { webappUrl } from '../../../lib/constants';
7+
import { useLazyModal } from '../../../hooks/useLazyModal';
8+
import { LazyModal } from '../../modals/common/types';
79

810
export const AccountSection = (): ReactElement => {
11+
const { openModal } = useLazyModal();
12+
913
return (
1014
<ProfileSection
1115
items={[
1216
{
1317
title: 'Settings',
14-
href: `${webappUrl}account/profile`,
18+
// href: `${webappUrl}account/profile`,
19+
onClick: () => openModal({ type: LazyModal.UserSettings }),
1520
icon: <SettingsIcon />,
1621
},
1722
{

0 commit comments

Comments
 (0)