diff --git a/packages/frontend/src/pages/App.tsx b/packages/frontend/src/pages/App.tsx index f15a49e..e9e7746 100644 --- a/packages/frontend/src/pages/App.tsx +++ b/packages/frontend/src/pages/App.tsx @@ -2,36 +2,16 @@ import { useEffect, useMemo, useRef } from "react"; import { useLocation } from "react-router-dom"; -import Account from "@/components/account"; import { IssueDetailPane } from "@/components/issue-detail-pane"; -import { IssueForm } from "@/components/issue-form"; import { IssuesTable } from "@/components/issues-table"; -import LogOutButton from "@/components/log-out-button"; -import OrgIcon from "@/components/org-icon"; -import { OrganisationSelect } from "@/components/organisation-select"; -import Organisations from "@/components/organisations"; -import { ProjectSelect } from "@/components/project-select"; import { useSelection } from "@/components/selection-provider"; -import { ServerConfiguration } from "@/components/server-configuration"; -import { useAuthenticatedSession } from "@/components/session-provider"; -import SmallUserDisplay from "@/components/small-user-display"; -import { Button } from "@/components/ui/button"; -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuSeparator, - DropdownMenuTrigger, -} from "@/components/ui/dropdown-menu"; -import Icon from "@/components/ui/icon"; -import { IconButton } from "@/components/ui/icon-button"; +import TopBar from "@/components/top-bar"; import { ResizablePanel, ResizablePanelGroup, ResizableSeparator } from "@/components/ui/resizable"; import { useIssues, useOrganisations, useProjects, useSelectedIssue } from "@/lib/query/hooks"; const BREATHING_ROOM = 1; export default function App() { - const { user } = useAuthenticatedSession(); const { selectedOrganisationId, selectedProjectId, @@ -181,77 +161,7 @@ export default function App() { return (
-
-
- org.Organisation.id === selectedOrganisationId, - )?.Organisation.name || "" - } - slug={ - organisations.find( - (org) => org.Organisation.id === selectedOrganisationId, - )?.Organisation.slug || "" - } - iconURL={ - organisations.find( - (org) => org.Organisation.id === selectedOrganisationId, - )?.Organisation.iconURL || undefined - } - size={7} - /> - } - /> - - {selectedOrganisationId && } - {selectedOrganisationId && selectedProjectId && ( - - - - } - /> - )} -
-
- - - - - - - - - - - - - - Server Configuration - - } - /> - - - - - - - -
-
+ {selectedOrganisationId && selectedProjectId && issuesData.length > 0 && (