mirror of
https://github.com/Dvorinka/Containr.git
synced 2026-10-28 15:51:26 +00:00
fix(ui): use SPageHead actions prop, satisfy tsc -b literal types
Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
fc82c30765
commit
86567a1ae8
2 files changed
+2
-2
No files matched your search
@@ -193,7 +193,7 @@ export function WebhooksPage() {
|
|||||||
title="Webhooks"
|
title="Webhooks"
|
||||||
titleAccent="_"
|
titleAccent="_"
|
||||||
sub="Signed HTTP delivery for every platform event — deploys, restarts, deletes"
|
sub="Signed HTTP delivery for every platform event — deploys, restarts, deletes"
|
||||||
trail={
|
actions={
|
||||||
<GhostBtn onClick={() => setCreating(true)}>
|
<GhostBtn onClick={() => setCreating(true)}>
|
||||||
<Plus size={13} /> New webhook
|
<Plus size={13} /> New webhook
|
||||||
</GhostBtn>
|
</GhostBtn>
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ export function STable<T extends { id?: string | number }>({ cols, rows, rowKey,
|
|||||||
className={`s-dt-h ${c.sortable !== false ? 'sortable' : ''} ${sortKey === c.key ? 'on' : ''}`}
|
className={`s-dt-h ${c.sortable !== false ? 'sortable' : ''} ${sortKey === c.key ? 'on' : ''}`}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (c.sortable === false) return;
|
if (c.sortable === false) return;
|
||||||
setSortDir(sortKey === c.key ? -sortDir : 1);
|
setSortDir(sortKey === c.key ? (sortDir === 1 ? -1 : 1) : 1);
|
||||||
setSortKey(c.key);
|
setSortKey(c.key);
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
Reference in new issue
Block a user