Skip to content

Commit

Permalink
fix(settings): tab titles
Browse files Browse the repository at this point in the history
  • Loading branch information
jsun969 committed Feb 16, 2024
1 parent bfa2e0f commit 42aba09
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/app/(account)/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ import { useState } from 'react';
import Sidebar from './Sidebar';
import MembershipSettings from './tabs/MembershipSettings';

export const TAB_NAMES = ['account', 'personalInfo', 'membership', 'notifications'] as const;
export const TAB_NAMES = ['Account', 'Personal Info', 'Membership', 'Notifications'] as const;
export type TabNames = (typeof TAB_NAMES)[number];

const SETTING_TABS = {
account: <></>,
personalInfo: <></>,
membership: <MembershipSettings />,
notifications: <></>,
Account: <></>,
'Personal Info': <></>,
Membership: <MembershipSettings />,
Notifications: <></>,
} as const satisfies Record<TabNames, React.ReactNode>;

export default function Settings() {
const [tab, setTab] = useState<TabNames>('membership');
const [tab, setTab] = useState<TabNames>('Membership');

return (
<>
Expand Down

0 comments on commit 42aba09

Please sign in to comment.