Skip to content

Commit

Permalink
fix(*): filters
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoxAzrot committed Nov 19, 2024
1 parent 8610bd3 commit 6d619f2
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,18 @@ export function Header() {
{() => (
<div>
<Button
variant={count ? "primary" : "secondary"}
size="sm"
variant="secondary"
iconOnly
startIcon={{ component: Filter }}
iconOnly={!count}
endContent={
count ? (
<Badge size="sm" shape="rounded">
<Badge
size="sm"
shape="rounded"
color={count ? "brand" : "grey"}
variant={count ? "solid" : "flat"}
>
{count}
</Badge>
) : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,18 @@ export function Header() {
{() => (
<div>
<Button
variant={count ? "primary" : "secondary"}
size="sm"
variant="secondary"
iconOnly
startIcon={{ component: Filter }}
iconOnly={!count}
endContent={
count ? (
<Badge size="sm" shape="rounded">
<Badge
size="sm"
shape="rounded"
color={count ? "brand" : "grey"}
variant={count ? "solid" : "flat"}
>
{count}
</Badge>
) : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,19 @@ export function Header() {
{() => (
<div>
<Button
variant={count ? "primary" : "secondary"}
size="sm"
variant="secondary"
iconOnly
startIcon={{ component: Filter }}
iconOnly={!count}
endContent={
count ? (
<Badge size="sm" shape="rounded">
<Badge
size="sm"
shape="rounded"
color={count ? "brand" : "grey"}
variant={count ? "solid" : "flat"}
>
{" "}
{count}
</Badge>
) : null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export function FilterButton({ onClick }: FilterButtonProps) {
<Badge size={"xxs"} color={filterCount ? "brand" : "grey"} variant={filterCount ? "solid" : "flat"}>
{filterCount}
</Badge>
) : undefined
) : null
}
/>
);
Expand Down

0 comments on commit 6d619f2

Please sign in to comment.