-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db65fd6
commit ac0f654
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
import { redirect } from "next/navigation"; | ||
import { fetchWithToken } from "@/data/fetchWithToken"; | ||
import { Consultant, Organisation } from "@/types"; | ||
import { Organisation } from "@/types"; | ||
import Link from "next/link"; | ||
|
||
export default async function Root() { | ||
const orgs = (await fetchWithToken<Organisation[]>("organisations")) ?? []; | ||
return ( | ||
<ul> | ||
<ul className="h-screen flex items-center justify-center gap-4"> | ||
{orgs.map((o) => ( | ||
<li key={o.urlKey}> | ||
<li | ||
key={o.urlKey} | ||
className="body-bold text-primary_default border-2 rounded-xl p-4 border-primary_l1 hover:bg-primary_default hover:bg-opacity-10 hover:border-primary_default" | ||
> | ||
<Link href={`/${o.urlKey}/bemanning`}>{o.name}</Link> | ||
</li> | ||
))} | ||
</ul> | ||
); | ||
//redirect("/bemanning"); | ||
} |