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

adding additional options in sort by #77

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion client/src/Components/Search.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const Search = ({ onSearch, onFilterChange, onSortChange }) => {
const [selectedSort, setSelectedSort] = useState("relevance");

const filters = ["title", "author", "subject", "published"];
const sortOptions = ["relevance", "newest"];
const sortOptions = ["Non-Fiction" , "Classics" , "Mystery & Thriller" , "Science Fiction" ,"Fantasy" ,"Romance" ,"Horror" ,"Poetry" ,"Self-Help" ,"Drama" ,"Philosophy" ,"Biography"];

// used to check if one toast is already displaying and prevent multiple toasts
const toastId = React.useRef(null);
Expand Down