-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add page-content for interactivity (#353)
- Loading branch information
1 parent
8f597b8
commit 6578d11
Showing
5 changed files
with
146 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
"use client"; | ||
|
||
import StaffingSidebar from "@/components/StaffingSidebar"; | ||
import FilteredConsultantsList from "@/components/FilteredConsultantsList"; | ||
import InfoPillDescriptions from "@/components/InfoPillDescriptions"; | ||
import { useState } from "react"; | ||
import IconActionButton from "@/components/Buttons/IconActionButton"; | ||
import { Filter } from "react-feather"; | ||
import ActiveFilters from "@/components/ActiveFilters"; | ||
import WeekSelection from "@/components/WeekSelection"; | ||
|
||
export function StaffingContent() { | ||
const [isSideBarOpen, setIsSidebarOpen] = useState<boolean>(false); | ||
|
||
return ( | ||
<> | ||
<StaffingSidebar | ||
isSidebarOpen={isSideBarOpen} | ||
closeSidebar={() => setIsSidebarOpen(false)} | ||
/> | ||
|
||
<div className="main p-4 w-full flex flex-col gap-8"> | ||
<h1>Bemanning</h1> | ||
|
||
<div className="flex flex-row justify-between items-center"> | ||
<div className="flex flex-row items-center gap-3"> | ||
{!isSideBarOpen && ( | ||
<IconActionButton | ||
variant={"secondary"} | ||
icon={<Filter />} | ||
onClick={() => setIsSidebarOpen(true)} | ||
/> | ||
)} | ||
<ActiveFilters showIcon={isSideBarOpen} /> | ||
</div> | ||
|
||
<WeekSelection /> | ||
</div> | ||
<FilteredConsultantsList /> | ||
<InfoPillDescriptions /> | ||
</div> | ||
</> | ||
); | ||
} |