Skip to content

Commit

Permalink
fix(Gubbins): defaultSection type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Loxeris committed Sep 9, 2024
1 parent c59d6ea commit 5896a96
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions packages/extensions/src/gubbins/defaultSections.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
import { applicationList } from "@/gubbins/applicationList";
import { UserSection } from "@dirac-grid/diracx-web-components/types";
import { BugReport } from "@mui/icons-material";

// New default user sections
export const defaultSections: {
title: string;
extended: boolean;
items: {
title: string;
type: string;
id: string;
icon: React.ComponentType<{}>;
data?: any;
}[];
}[] = [
export const defaultSections: UserSection[] = [
{
title: "Default Applications",
extended: true,
Expand All @@ -22,31 +14,31 @@ export const defaultSections: {
type: "Test App",
icon:
applicationList.find((app) => app.name === "Test App")?.icon ||
(() => <div></div>),
BugReport,
},
{
title: "Dashboard",
id: "Dashboard 1",
type: "Dashboard",
icon:
applicationList.find((app) => app.name === "Dashboard")?.icon ||
(() => <div></div>),
BugReport,
},
{
title: "Job Monitor",
id: "Job Monitor 1",
type: "Job Monitor",
icon:
applicationList.find((app) => app.name === "Job Monitor")?.icon ||
(() => <div></div>),
BugReport,
},
{
title: "File Catalog",
id: "File Catalog 1",
type: "File Catalog",
icon:
applicationList.find((app) => app.name === "File Catalog")?.icon ||
(() => <div></div>),
BugReport,
},
],
},
Expand Down

0 comments on commit 5896a96

Please sign in to comment.