Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: exercise count for different types on filter #42

Merged
merged 2 commits into from
Feb 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading