diff --git a/apps/webservice/src/app/[workspaceSlug]/SidebarCreateMenu.tsx b/apps/webservice/src/app/[workspaceSlug]/SidebarCreateMenu.tsx index 5fc2c8db..9c1d73c1 100644 --- a/apps/webservice/src/app/[workspaceSlug]/SidebarCreateMenu.tsx +++ b/apps/webservice/src/app/[workspaceSlug]/SidebarCreateMenu.tsx @@ -1,3 +1,4 @@ +import type { Workspace } from "@ctrlplane/db/schema"; import { useState } from "react"; import { TbPlus } from "react-icons/tb"; @@ -16,10 +17,10 @@ import { CreateReleaseDialog } from "./_components/CreateRelease"; import { CreateSystemDialog } from "./_components/CreateSystem"; export const SidebarCreateMenu: React.FC<{ - workspaceId: string; + workspace: Workspace; deploymentId?: string; systemId?: string; -}> = ({ workspaceId, deploymentId, systemId }) => { +}> = (props) => { const [open, setOpen] = useState(false); return ( @@ -38,21 +39,20 @@ export const SidebarCreateMenu: React.FC<{ forceMount > - + setOpen(false)} + > e.preventDefault()}> New System - + setOpen(false)}> e.preventDefault()}> New Deployment - setOpen(false)} - > + setOpen(false)}> e.preventDefault()}> New Release diff --git a/apps/webservice/src/app/[workspaceSlug]/SidebarMain.tsx b/apps/webservice/src/app/[workspaceSlug]/SidebarMain.tsx index 373e22dd..7f5a16bf 100644 --- a/apps/webservice/src/app/[workspaceSlug]/SidebarMain.tsx +++ b/apps/webservice/src/app/[workspaceSlug]/SidebarMain.tsx @@ -55,7 +55,7 @@ export const SidebarMain: React.FC<{ diff --git a/apps/webservice/src/app/[workspaceSlug]/SidebarSystems.tsx b/apps/webservice/src/app/[workspaceSlug]/SidebarSystems.tsx index f40b369d..1ff1130f 100644 --- a/apps/webservice/src/app/[workspaceSlug]/SidebarSystems.tsx +++ b/apps/webservice/src/app/[workspaceSlug]/SidebarSystems.tsx @@ -83,7 +83,7 @@ export const SidebarSystems: React.FC<{ {systems.length === 0 && ( - +