Skip to content

Commit

Permalink
removed sort and fixed results
Browse files Browse the repository at this point in the history
  • Loading branch information
Ducica committed Oct 19, 2023
1 parent dea7e79 commit dbf5fa6
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 40 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,8 @@ import { Sort } from "react-searchkit";

import { i18next } from "@translations/oarepo_ui/i18next";

const renderLabel = (cmp) => (
<>
<label className="mr-10">{i18next.t("Sort by")}</label>
{cmp}
</>
);

export const SearchAppSort = ({ options }) => {
return (
<Sort
sortOrderDisabled
values={options}
ariaLabel={i18next.t("Sort")}
label={renderLabel}
/>
<Sort sortOrderDisabled values={options} ariaLabel={i18next.t("Sort")} />
);
};
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
{
"Remove field": "Remove field",
"Language": "Language",
"Search for a language by name (e.g \"eng\", \"fr\" or \"Polish\")": "Search for a language by name (e.g \"eng\", \"fr\" or \"Polish\")",
"Add another language": "Add another language",
"We couldn't find any matches for ": "We couldn't find any matches for ",
"search": "search",
"Choose": "Choose",
"Selected records": "Selected records",
"Something went wrong...": "Something went wrong...",
"Search...": "Search...",
"No results found": "No results found",
"Loading...": "Loading...",
"Search External Database": "Search External Database",
"Search results from external API": "Search results from external API",
"Draft saved with validation errors. Fields listed below that failed validation were not saved to the server": "Draft saved with validation errors. Fields listed below that failed validation were not saved to the server",
"Draft saved successfully.": "Draft saved successfully.",
"Draft published successfully. Redirecting to record's detail page ...": "Draft published successfully. Redirecting to record's detail page ...",
"Draft deleted successfully. Redirecting to the main page ...": "Draft deleted successfully. Redirecting to the main page ...",
"Start over": "Start over",
"totalResults": "totalResults",
"totalResults_plural": "totalResults",
"resultsPerPage": "resultsPerPage",
"Filters": "Filters",
"Filter results": "Filter results",
"Sort by": "Sort by",
"Sort": "Sort"
}
"Remove field": "Remove field",
"Language": "Language",
"Search for a language by name (e.g \"eng\", \"fr\" or \"Polish\")": "Search for a language by name (e.g \"eng\", \"fr\" or \"Polish\")",
"Add another language": "Add another language",
"We couldn't find any matches for ": "We couldn't find any matches for ",
"search": "search",
"Choose": "Choose",
"Selected records": "Selected records",
"Something went wrong...": "Something went wrong...",
"Search...": "Search...",
"No results found": "No results found",
"Loading...": "Loading...",
"Search External Database": "Search External Database",
"Search results from external API": "Search results from external API",
"Draft saved with validation errors. Fields listed below that failed validation were not saved to the server": "Draft saved with validation errors. Fields listed below that failed validation were not saved to the server",
"Draft saved successfully.": "Draft saved successfully.",
"Draft published successfully. Redirecting to record's detail page ...": "Draft published successfully. Redirecting to record's detail page ...",
"Draft deleted successfully. Redirecting to the main page ...": "Draft deleted successfully. Redirecting to the main page ...",
"Start over": "Start over",
"totalResults": "totalResults",
"totalResults_plural": "totalResults",
"resultsPerPage": "resultsPerPage",
"Filters": "Filters",
"Filter results": "Filter results",
"Sort by": "Sort by",
"Sort": "Sort",
"totalResults_one": "{{count}} result",
"totalResults_other": "{{count}} results"
}

0 comments on commit dbf5fa6

Please sign in to comment.