Skip to content

Commit

Permalink
fix: default value bug (#97)
Browse files Browse the repository at this point in the history
  • Loading branch information
boomchanotai authored May 9, 2024
1 parent e3a20f5 commit cbdae3b
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
11 changes: 11 additions & 0 deletions src/app/home/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,17 @@ const MainPage = () => {
black: false,
brown: false,
blonde: false,
tabby: false,
whiteBlack: false,
whiteOrange: false,
tortoiseShell: false,
calico: false,
gray: false,
cream: false,
brownSpots: false,
greySpots: false,
orangeSpots: false,
dirtySpots: false,
minAge: 0,
maxAge: 30,
});
Expand Down
11 changes: 11 additions & 0 deletions src/app/pets/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ const Pets = () => {
black: false,
brown: false,
blonde: false,
tabby: false,
whiteBlack: false,
whiteOrange: false,
tortoiseShell: false,
calico: false,
gray: false,
cream: false,
brownSpots: false,
greySpots: false,
orangeSpots: false,
dirtySpots: false,
minAge: 0,
maxAge: 30,
});
Expand Down
2 changes: 1 addition & 1 deletion src/components/Filter/FilterPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const FilterPanel = ({ heading, children }: FilterPanelProps) => {
<>
<FilterButton text={heading} isOpen={isOpen} onClick={toggleOpen} />
{isOpen && (
<div className="max-h-32 w-full overflow-y-auto scroll-smooth">
<div className="w-full">
<div className="flex flex-wrap items-center justify-center gap-2">
{children}
</div>
Expand Down

0 comments on commit cbdae3b

Please sign in to comment.