Open rgavigan opened 7 months ago
I think we should go for the simple fix for now, and later down the line we could add a search bar on the explore page to filter through the results.
Here's some guidance on the simple fix:
In components/SearchBar.tsx
, we should change the onSelect
handler to also close the SearchBarDialog
, which we're already doing the course CommandItem
components. Add this line
if (onSelect) onSelect(value);
to the handler for the explore courses CommandItem
component (here: https://github.com/Western-Rank/western-rank/blob/main/components/Searchbar.tsx#L141).
Scenario:
Suggested fix: