fix(frontend): complete settings MVP structure
Independent Staging Quality Gate / validate (push) Failing after 10m21s
Independent Staging Quality Gate / publish (push) Has been skipped

This commit is contained in:
Jesse_Chen
2026-08-30 16:32:58 +08:00
parent f5e6d51646
commit a671986a1d
7 changed files with 209 additions and 31 deletions
+8 -2
View File
@@ -6,8 +6,9 @@ import {
ChevronRight,
Clock3,
FileText,
Gift,
LogOut,
Settings,
WalletCards,
MessageSquareText,
SquarePen,
Star,
@@ -72,6 +73,7 @@ export type AppSidebarProps = {
onAddChart: () => void;
onOpenProfile: () => void;
onOpenChartLibrary: () => void;
onOpenGeneral: () => void;
onOpenRedeem: () => void;
onOpenLogout: () => void;
};
@@ -94,6 +96,7 @@ export function AppSidebar({
onAddChart,
onOpenProfile,
onOpenChartLibrary,
onOpenGeneral,
onOpenRedeem,
onOpenLogout,
}: AppSidebarProps) {
@@ -308,8 +311,11 @@ export function AppSidebar({
<Menu.Item className="account-menu-item" onClick={onOpenChartLibrary}>
<Users aria-hidden="true" /><span></span><ChevronRight aria-hidden="true" />
</Menu.Item>
<Menu.Item className="account-menu-item" onClick={onOpenGeneral}>
<Settings aria-hidden="true" /><span></span><ChevronRight aria-hidden="true" />
</Menu.Item>
<Menu.Item className="account-menu-item" onClick={onOpenRedeem}>
<Gift aria-hidden="true" /><span></span><small>{account.credits} </small>
<WalletCards aria-hidden="true" /><span></span><small>{account.credits} </small>
</Menu.Item>
<Menu.Separator className="account-menu-separator" />
<ThemePreferenceMenu />