-
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.
- Loading branch information
1 parent
e76126f
commit 207d4ff
Showing
5 changed files
with
49 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ export const MockConsultants: Consultant[] = [ | |
}, | ||
], | ||
yearsOfExperience: 23, | ||
isOccupied: true, | ||
}, | ||
]; | ||
|
||
|
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,21 @@ | ||
"use client"; | ||
import FilterButton from "./FilterButton"; | ||
import { useFilteredConsultants } from "@/hooks/useFilteredConsultants"; | ||
|
||
export default function AvailabilityFilter() { | ||
const { availabilityFilterOn, toggleAvailabilityFilter } = | ||
useFilteredConsultants(); | ||
|
||
return ( | ||
<div className="flex flex-col gap-2"> | ||
<p className="body-small">Status</p> | ||
<div className="flex flex-col gap-2 w-52"> | ||
<FilterButton | ||
label={"Ledig tid"} | ||
onClick={() => toggleAvailabilityFilter(!availabilityFilterOn)} | ||
checked={availabilityFilterOn} | ||
/> | ||
</div> | ||
</div> | ||
); | ||
} |
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