🎨 Ryddet opp i 🍝-kode
Co-authored-by: Amalie Erdal Mansåker <amalie.erdal.mansaker@nav.no> Co-authored-by: Markus A. R. Johansen <markus.aleksander.rakil.johansen@nav.no>
This commit is contained in:
parent
c7c0a1f130
commit
704bc8951a
3 changed files with 66 additions and 77 deletions
|
@ -1,12 +1,8 @@
|
|||
import FeilCard from "../components/FeilCard";
|
||||
import "@navikt/ds-css";
|
||||
import { Button, Heading, Search } from "@navikt/ds-react";
|
||||
import axios , { Axios, AxiosError } from "axios";
|
||||
import router from "next/router";
|
||||
|
||||
|
||||
const fetcher = (url: any) => axios.get(url).then(res => res.data)
|
||||
|
||||
export default function Home() {
|
||||
|
||||
const handleFeil = () => {
|
||||
|
@ -20,12 +16,24 @@ export default function Home() {
|
|||
variant="primary"
|
||||
hideLabel={false}
|
||||
/>
|
||||
<Heading level="1" size="medium">Innmeldte feil (saker, feilmeldingerm poster, feil)</Heading>
|
||||
|
||||
<Heading
|
||||
level="1"
|
||||
size="medium"
|
||||
>
|
||||
Innmeldte feil (saker, feilmeldingerm poster, feil)
|
||||
</Heading>
|
||||
<div className="w-1/2 flex flex-col gap-4 justify-center text-center">
|
||||
<Button variant="primary" onClick={handleFeil}>Meld inn feil</Button>
|
||||
<Button variant="secondary">Meld inn funksjonalitetsønsker</Button>
|
||||
|
||||
<Button
|
||||
variant="primary"
|
||||
onClick={handleFeil}
|
||||
>
|
||||
Meld inn feil
|
||||
</Button>
|
||||
<Button
|
||||
variant="secondary"
|
||||
>
|
||||
Meld inn funksjonalitetsønsker
|
||||
</Button>
|
||||
</div>
|
||||
<FeilCard />
|
||||
</main>
|
||||
|
|
Reference in a new issue