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

BugFix: when clicked on one of the items of the sort dropdown, it is… #460

Merged
merged 6 commits into from
Aug 17, 2024
Merged
Changes from 2 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
4 changes: 4 additions & 0 deletions apps/web/components/Tracks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ export const Tracks = ({ tracks }: { tracks: TrackPros[] }) => {
const selectedCategory = useRecoilValue(category);
const [filteredTracks, setFilteredTracks] = useState<TrackPros[]>(tracks);
const [sortBy, setSortBy] = useState<string>("");

devsargam marked this conversation as resolved.
Show resolved Hide resolved
const [selectOpen, setSelectOpen] = useState<boolean>(false);
devsargam marked this conversation as resolved.
Show resolved Hide resolved
const [cohort3, setCohort3] = useState<boolean>(false);

const filterTracks = () => {
Expand Down Expand Up @@ -56,6 +58,8 @@ export const Tracks = ({ tracks }: { tracks: TrackPros[] }) => {
<div>
<div className="flex flex-col gap-4 md:flex-row items-center justify-evenly mt-6">
<Select
open = {selectOpen}
devsargam marked this conversation as resolved.
Show resolved Hide resolved
onOpenChange={() => { setTimeout(() => { setSelectOpen(!selectOpen); }, 20); }}
devsargam marked this conversation as resolved.
Show resolved Hide resolved
onValueChange={(e) => {
setSortBy(e);
}}
Expand Down