Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 31 additions & 30 deletions client/dashboard/src/pages/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -320,36 +320,37 @@ export default function Settings() {
className="w-64"
/>
</Stack>
<Table
columns={apiKeyColumns}
data={filteredKeys}
rowKey={(row) => row.id}
className="max-h-[500px] overflow-y-auto"
noResultsMessage={
<Stack
gap={2}
className="h-full p-4 bg-background"
align="center"
justify="center"
>
<Type variant="body">
{apiKeySearch ? "No matching API keys" : "No API keys yet"}
</Type>
{!apiKeySearch && (
<Button
size="sm"
variant="secondary"
onClick={() => setIsCreateDialogOpen(true)}
>
<Button.LeftIcon>
<Icon name="key-round" className="h-4 w-4" />
</Button.LeftIcon>
<Button.Text>Create Key</Button.Text>
</Button>
)}
</Stack>
}
/>
<div className="max-h-[500px] overflow-y-auto rounded-lg border border-border">
<Table
columns={apiKeyColumns}
data={filteredKeys}
rowKey={(row) => row.id}
noResultsMessage={
<Stack
gap={2}
className="h-full p-4 bg-background"
align="center"
justify="center"
>
<Type variant="body">
{apiKeySearch ? "No matching API keys" : "No API keys yet"}
</Type>
{!apiKeySearch && (
<Button
size="sm"
variant="secondary"
onClick={() => setIsCreateDialogOpen(true)}
>
<Button.LeftIcon>
<Icon name="key-round" className="h-4 w-4" />
</Button.LeftIcon>
<Button.Text>Create Key</Button.Text>
</Button>
)}
</Stack>
}
/>
</div>

<Dialog
open={isCreateDialogOpen}
Expand Down
Loading