feat: add api key and usage to command panel
This commit is contained in:
parent
a12fa3e6fe
commit
71f75c27dd
@ -14,6 +14,8 @@ import {
|
|||||||
LuAreaChart,
|
LuAreaChart,
|
||||||
LuBellDot,
|
LuBellDot,
|
||||||
LuFilePieChart,
|
LuFilePieChart,
|
||||||
|
LuKanbanSquare,
|
||||||
|
LuKeyRound,
|
||||||
LuMonitorDot,
|
LuMonitorDot,
|
||||||
LuSearch,
|
LuSearch,
|
||||||
LuServer,
|
LuServer,
|
||||||
@ -171,6 +173,22 @@ export const CommandPanel: React.FC<CommandPanelProps> = React.memo((props) => {
|
|||||||
<LuBellDot className="mr-2 h-4 w-4" />
|
<LuBellDot className="mr-2 h-4 w-4" />
|
||||||
<span>{t('Notifications')}</span>
|
<span>{t('Notifications')}</span>
|
||||||
</CommandItem>
|
</CommandItem>
|
||||||
|
<CommandItem
|
||||||
|
onSelect={handleJump({
|
||||||
|
to: '/settings/apiKey',
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
<LuKeyRound className="mr-2 h-4 w-4" />
|
||||||
|
<span>{t('Api Key')}</span>
|
||||||
|
</CommandItem>
|
||||||
|
<CommandItem
|
||||||
|
onSelect={handleJump({
|
||||||
|
to: '/settings/usage',
|
||||||
|
})}
|
||||||
|
>
|
||||||
|
<LuKanbanSquare className="mr-2 h-4 w-4" />
|
||||||
|
<span>{t('Usage')}</span>
|
||||||
|
</CommandItem>
|
||||||
</CommandGroup>
|
</CommandGroup>
|
||||||
</CommandList>
|
</CommandList>
|
||||||
</Command>
|
</Command>
|
||||||
|
Loading…
Reference in New Issue
Block a user