Skip to content

Commit

Permalink
style: fix page to use function instead of const to be consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
andreaslhjulstad committed Oct 8, 2024
1 parent ff1b797 commit 0366b39
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
import { useParams } from "next/navigation";
import React from "react";

const CaseDashboard: React.FC = () => {
export default function CaseDashboard() {
const { caseNumber } = useParams();

return (
<div>
<h1>Dashbord for saksnummer: {caseNumber}</h1>
</div>
);
};

export default CaseDashboard;
}

0 comments on commit 0366b39

Please sign in to comment.