mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 22:16:15 +00:00
#591 - sites [wip]
This commit is contained in:
@ -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>
|
||||
);
|
||||
|
Reference in New Issue
Block a user