From 0366b399dc439cbec7f09826c2076cca7b0aefb5 Mon Sep 17 00:00:00 2001 From: Andreas Lilleby Hjulstad Date: Tue, 8 Oct 2024 11:01:07 +0200 Subject: [PATCH] style: fix page to use function instead of const to be consistent --- .../dine-saker/dashbord/[caseNumber]/page.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/mottakskontroll/dine-saker/dashbord/[caseNumber]/page.tsx b/frontend/src/app/mottakskontroll/dine-saker/dashbord/[caseNumber]/page.tsx index 0876da3..3646968 100644 --- a/frontend/src/app/mottakskontroll/dine-saker/dashbord/[caseNumber]/page.tsx +++ b/frontend/src/app/mottakskontroll/dine-saker/dashbord/[caseNumber]/page.tsx @@ -3,7 +3,7 @@ import { useParams } from "next/navigation"; import React from "react"; -const CaseDashboard: React.FC = () => { +export default function CaseDashboard() { const { caseNumber } = useParams(); return ( @@ -11,6 +11,4 @@ const CaseDashboard: React.FC = () => {

Dashbord for saksnummer: {caseNumber}

); -}; - -export default CaseDashboard; +}