Skip to content

Commit

Permalink
Make org index look nicer (#157)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbjoralt authored Oct 19, 2023
1 parent db65fd6 commit ac0f654
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions frontend/src/app/page.tsx
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");
}

0 comments on commit ac0f654

Please sign in to comment.