Skip to content

Commit

Permalink
Merge pull request #42 from bedirhanyildirim/v2
Browse files Browse the repository at this point in the history
fix: exercise count for different types on filter
  • Loading branch information
bedirhanyildirim committed Feb 12, 2024
2 parents 9951921 + 1aa1fb6 commit 740e10c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/theme/sport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,19 @@ export default function ThemeSport() {

return (
<>
<div className="mb-8 md:mb-4 lg:mb-8 flex items-center">
<div className="mb-4 md:mb-8 gap-4 md:gap-0 flex flex-col md:flex-row items-center">
<h3 className="w-full flex justify-center text-xl text-black dark:text-white md:block">
<span className="font-bold text-title mr-1 md:mr-0">
{sportHistory.length}
{exercises.length}
</span> exercises in 2024
</h3>
<div className="">
<div className="ml-auto md:ml-0">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button variant="outline">Filter</Button>
<Button variant="ghost">Filter</Button>
</DropdownMenuTrigger>
<DropdownMenuContent className="w-56" align="end">
<DropdownMenuLabel>Exercises</DropdownMenuLabel>
<DropdownMenuLabel>Exercise Type</DropdownMenuLabel>
<DropdownMenuSeparator />
<DropdownMenuRadioGroup
value={selectedFilter}
Expand Down

0 comments on commit 740e10c

Please sign in to comment.