Skip to content

Commit

Permalink
Added Secondary button back to first-page as per Design (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
yelodevopsi authored Oct 26, 2023
1 parent c51fd66 commit 0806744
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import PrimaryButton from "@/components/PrimaryButton";
import SecondaryButton from "@/components/SecondaryButton";
import { fetchWithToken } from "@/data/fetchWithToken";
import { Organisation } from "@/types";
import Link from "next/link";
Expand All @@ -10,7 +10,7 @@ export default async function Root() {
{orgs.map((o) => (
<li key={o.urlKey}>
<Link href={`/${o.urlKey}/bemanning`}>
<PrimaryButton label={o.name} />
<SecondaryButton label={o.name} />
</Link>
</li>
))}
Expand Down
18 changes: 18 additions & 0 deletions frontend/src/components/SecondaryButton.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
export default function SecondaryButton({
label,
onClick,
}: {
label: string;
onClick?: () => void;
}) {
return (
<button
className="h-10 p-3 rounded-lg border border-primary_l1 justify-center items-center gap-2 inline-flex hover:bg-primary_default hover:border-primary_default hover:bg-opacity-10"
onClick={onClick}
>
<div className=" text-primary_default text-sm font-semibold leading-none">
{label}
</div>
</button>
);
}

0 comments on commit 0806744

Please sign in to comment.