Skip to content

Commit f991512

Browse files
added action layout for the participants page
1 parent fc4405b commit f991512

1 file changed

Lines changed: 26 additions & 1 deletion

File tree

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,33 @@
1+
import Link from "next/link";
12
import { useRouter } from "next/router";
23

4+
import { Button } from "@/components/ui/button";
5+
import ActionLayout from "@/pages/layouts/actionlayout";
6+
37
export default function ParticipantsPage() {
48
const router = useRouter();
59
const { id } = router.query;
610

7-
return <div>Participants for event {id}</div>;
11+
return (
12+
<>
13+
<ActionLayout
14+
secondaryAction={
15+
<Button
16+
variant="outline"
17+
className="flex-1 rounded-full"
18+
onClick={() => router.back()}
19+
>
20+
Back
21+
</Button>
22+
}
23+
primaryAction={
24+
<Link href={"/events/" + id + "/participants"} className="flex-1">
25+
<Button className="w-full rounded-full">Unused Button</Button>
26+
</Link>
27+
}
28+
>
29+
<div>Participants for event {id}</div>
30+
</ActionLayout>
31+
</>
32+
);
833
}

0 commit comments

Comments
 (0)