Skip to content

Commit

Permalink
feat(#19): add a dashboard component containing the table and sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
mari1912 committed Jun 28, 2024
1 parent 8fe6e37 commit 85110f8
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 83 deletions.
6 changes: 2 additions & 4 deletions dashboard/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import "./App.css";
import LateralMenu from "./components/LateralMenu/LateralMenu";
import Dashboard from "./components/Dashboard/Dashboard";

function App(): JSX.Element {
return (
<>
<div className="w-screen h-screen">
<LateralMenu />
<Dashboard />
</div>
</>
);
}

Expand Down
47 changes: 0 additions & 47 deletions dashboard/src/components/Button/Button.tsx

This file was deleted.

30 changes: 0 additions & 30 deletions dashboard/src/components/Button/button.css

This file was deleted.

17 changes: 17 additions & 0 deletions dashboard/src/components/Dashboard/Dashboard.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import LateralMenu from "../LateralMenu/LateralMenu";
import TreeTable from "../Table/TreeTable";

const Dashboard = () : JSX.Element => {
return (
<div className="w-full h-full">
<div className="flex flex-row w-full">
<LateralMenu />
<div className="w-full px-16 pt-64">
<TreeTable />
</div>
</div>
</div>
);
};

export default Dashboard;
4 changes: 2 additions & 2 deletions dashboard/src/components/LateralMenu/LateralMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const NavLink = ({
const LateralMenu = (): JSX.Element => {
return (
<NavigationMenu
className="sticky bg-gray-700 z-50 pt-6 flex-col"
className="sticky bg-gray-700 pt-6 flex-col h-screen justify-start"
orientation="vertical"
>
<div className="w-full px-4">
Expand All @@ -73,7 +73,7 @@ const LateralMenu = (): JSX.Element => {

<Separator className="my-4 bg-gray-600" />

<NavigationMenuList className="flex-col h-screen justify-start w-52 space-y-4 space-x-0 ">
<NavigationMenuList className="flex-col overflow-hidden justify-start w-52 space-y-4 space-x-0 ">
{items.map((item) =>
item.selected ? (
<NavigationMenuItem
Expand Down

0 comments on commit 85110f8

Please sign in to comment.