-
Notifications
You must be signed in to change notification settings - Fork 4
/
page.tsx
52 lines (50 loc) · 1.49 KB
/
page.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
"use client";
import {
ApplicationsTableWithHook as ApplicationsTable,
Button,
BackButton,
RoundDetailsWithHook as RoundDetails,
RoundEligibilityWithHook as RoundEligibility,
} from "@allo-team/kit";
import Link from "next/link";
export default function RoundPage({ params: { chainId = 0, roundId = "" } }) {
return (
<section className="space-y-8">
<RoundDetails
roundId={roundId}
chainId={chainId}
primaryAction={
<div className="flex gap-2">
<Link href={`/${chainId}/rounds/${roundId}`}>
<Button variant="outline">View Round</Button>
</Link>
<Link href={`/admin/rounds/${chainId}/${roundId}/allocate`}>
<Button>Allocate</Button>
</Link>
</div>
}
backAction={
<Link href={`/admin/rounds`}>
<BackButton />
</Link>
}
/>
<div className="space-y-2">
<h3 className="text-xl font-semibold">Eligibility</h3>
<RoundEligibility roundId={roundId} chainId={chainId} />
</div>
<div className="space-y-2">
<h3 className="text-xl font-semibold">Applications</h3>
<ApplicationsTable
roundId={roundId}
chainId={chainId}
renderLink={({ id }) => (
<Link href={`/admin/applications/${chainId}/${roundId}/${id}`}>
<Button variant={"ghost"}>View</Button>
</Link>
)}
/>
</div>
</section>
);
}