🚸 Routing in the box
Co-authored-by: Amalie Erdal Mansåker <amalie.erdal.mansaker@nav.no> Co-authored-by: Øydis Kind Refsum <oydis.kind.refsum@nav.no>
This commit is contained in:
parent
eabfd2b291
commit
73215513a3
4 changed files with 25 additions and 6 deletions
|
|
@ -2,13 +2,15 @@ import CardsContainer from "./components/CardsContainer";
|
|||
import "@navikt/ds-css";
|
||||
import { Button, Heading, Search } from "@navikt/ds-react";
|
||||
import Header from "./components/Header";
|
||||
|
||||
import { useNavigate } from "react-router-dom";
|
||||
|
||||
export default function Home() {
|
||||
// const handleFeil = () => {
|
||||
// router.push('/feil')
|
||||
// }
|
||||
|
||||
const navigate = useNavigate()
|
||||
|
||||
return (
|
||||
<main className="flex flex-col h-screen">
|
||||
<Header/>
|
||||
|
|
@ -16,8 +18,9 @@ export default function Home() {
|
|||
<div className="bg-bg-subtle w-1/6 p-8 flex flex-col justify-end">
|
||||
<div className="flex flex-col gap-4 text-center bottom-0">
|
||||
<Button
|
||||
variant="primary"
|
||||
variant="primary"
|
||||
// onClick={handleFeil}
|
||||
onClick={() => navigate("nyfeil")}
|
||||
>
|
||||
Meld inn feil
|
||||
</Button>
|
||||
|
|
|
|||
Reference in a new issue