refactor: enhance ApiKeyContent and MobileSidebar components with improved styling and event handling for better user experience

This commit is contained in:
Anish Sarkar 2026-03-08 20:34:12 +05:30
parent 863ba6865c
commit f14efa18b3
2 changed files with 96 additions and 40 deletions

View file

@ -166,9 +166,30 @@ export function MobileSidebar({
: undefined
}
user={user}
onSettings={onSettings}
onManageMembers={onManageMembers}
onUserSettings={onUserSettings}
onSettings={
onSettings
? () => {
onOpenChange(false);
onSettings();
}
: undefined
}
onManageMembers={
onManageMembers
? () => {
onOpenChange(false);
onManageMembers();
}
: undefined
}
onUserSettings={
onUserSettings
? () => {
onOpenChange(false);
onUserSettings();
}
: undefined
}
onLogout={onLogout}
pageUsage={pageUsage}
theme={theme}