Skip to content
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