Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasbjoralt committed Oct 12, 2023
1 parent 60868b8 commit 371b72f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
17 changes: 6 additions & 11 deletions frontend/src/app/bemanning/page.tsx
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import FilteredConsultantsList from "@/components/FilteredConsultantsList";
import { getConsultants } from "@/data/getConsultants";
import { CircularProgress } from "@mui/material";

export default async function Bemanning() {
const consultants = await getConsultants();

if (consultants.length == 0) {
return <CircularProgress />;
} else {
return (
<div>
<h1>Konsulenter</h1>
<FilteredConsultantsList consultants={consultants} />
</div>
);
}
return (
<div>
<h1>Konsulenter</h1>
<FilteredConsultantsList consultants={consultants} />
</div>
);
}
2 changes: 1 addition & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "es2017",
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
Expand Down

0 comments on commit 371b72f

Please sign in to comment.