#591 - sites [wip]

This commit is contained in:
Saeed Vaziry
2025-05-25 22:17:19 +02:00
parent ff11fb44e0
commit f5fdbae4ac
77 changed files with 2156 additions and 414 deletions

View File

@ -4,15 +4,13 @@ import Container from '@/components/container';
import Heading from '@/components/heading';
import { Button } from '@/components/ui/button';
import { DataTable } from '@/components/data-table';
import React from 'react';
import { SSHKey } from '@/types/ssh-key';
import { columns } from '@/pages/ssh-keys/components/columns';
import AddSshKey from '@/pages/ssh-keys/components/add-ssh-key';
import { PaginatedData } from '@/types';
type Page = {
sshKeys: {
data: SSHKey[];
};
sshKeys: PaginatedData<SSHKey>;
};
export default function SshKeys() {
@ -31,7 +29,7 @@ export default function SshKeys() {
</div>
</div>
<DataTable columns={columns} data={page.props.sshKeys.data} />
<DataTable columns={columns} paginatedData={page.props.sshKeys} />
</Container>
</SettingsLayout>
);