Skip to content

Commit

Permalink
replace Menu with MenuMobile
Browse files Browse the repository at this point in the history
  • Loading branch information
sahidrahman404 committed Apr 16, 2024
1 parent a0e4bdc commit 64d1076
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Exercises/ExerciseSort.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MenuTrigger } from "react-aria-components";
import { Button } from "../ReactAriaUI/Button";
import { ArrowUpDown } from "lucide-react";
import { Menu, MenuItem } from "../ReactAriaUI/Menu";
import { MenuMobile, MenuItem } from "../ReactAriaUI/Menu";
import { ExercisesFilterSortProps } from "./ExercisesFilterSort";

interface ExerciseSortProps
Expand All @@ -22,7 +22,7 @@ function ExerciseSort({
<ArrowUpDown className="mr-2 w-4 h-4" />
Sort
</Button>
<Menu
<MenuMobile
onAction={(key) => {
if (key === "Desc") {
startTransition(() => {
Expand Down Expand Up @@ -66,7 +66,7 @@ function ExerciseSort({
>
<MenuItem id="Desc">Newest</MenuItem>
<MenuItem id="Asc">Oldest</MenuItem>
</Menu>
</MenuMobile>
</MenuTrigger>
);
}
Expand Down

0 comments on commit 64d1076

Please sign in to comment.