mirror of
https://codeberg.org/MarkusThielker/next-ory.git
synced 2025-04-10 11:58:41 +00:00
NORY-46: add button to create client
This commit is contained in:
parent
1602dcaa0b
commit
92b92e13b5
2 changed files with 20 additions and 1 deletions
12
dashboard/src/app/(inside)/client/create/page.tsx
Normal file
12
dashboard/src/app/(inside)/client/create/page.tsx
Normal file
|
@ -0,0 +1,12 @@
|
|||
export default async function CreateClientPage() {
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<p className="text-3xl font-bold leading-tight tracking-tight">Create OAuth2 Client</p>
|
||||
<p className="text-lg font-light">
|
||||
Configure your new OAuth2 Client.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
|
@ -1,5 +1,7 @@
|
|||
import { getOAuth2Api } from '@/ory/sdk/server';
|
||||
import { ClientDataTable } from '@/app/(inside)/client/data-table';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import Link from 'next/link';
|
||||
|
||||
export interface FetchClientPageProps {
|
||||
pageSize: number;
|
||||
|
@ -50,11 +52,16 @@ export default async function ListClientPage() {
|
|||
|
||||
return (
|
||||
<div className="space-y-4">
|
||||
<div>
|
||||
<div className="relative">
|
||||
<p className="text-3xl font-bold leading-tight tracking-tight">OAuth2 Clients</p>
|
||||
<p className="text-lg font-light">
|
||||
See and manage all OAuth2 clients registered with your Ory Hydra instance
|
||||
</p>
|
||||
<Button className="absolute bottom-0 right-0" asChild>
|
||||
<Link href="/client/create">
|
||||
Create new client
|
||||
</Link>
|
||||
</Button>
|
||||
</div>
|
||||
<ClientDataTable
|
||||
data={initialFetch.data}
|
||||
|
|
Loading…
Add table
Reference in a new issue