Fix library sort order icons
This commit is contained in:
@@ -16,9 +16,11 @@ interface IProps extends RadioInputProps {
|
||||
sortDescending?: boolean | null | undefined;
|
||||
}
|
||||
|
||||
export const SortRadioInput = memo(({ sortDescending, ...rest }: IProps) => (
|
||||
export const SortRadioInput = memo(({ sortDescending, checkedIcon, ...rest }: IProps) => (
|
||||
<RadioInput
|
||||
checkedIcon={sortDescending ? <ArrowDownward color="primary" /> : <ArrowUpward color="primary" />}
|
||||
{...rest}
|
||||
checkedIcon={
|
||||
checkedIcon ?? (sortDescending ? <ArrowDownward color="primary" /> : <ArrowUpward color="primary" />)
|
||||
}
|
||||
/>
|
||||
));
|
||||
|
||||
@@ -217,7 +217,7 @@ export const LibraryOptionsPanel = ({
|
||||
key={mode}
|
||||
label={t(label)}
|
||||
checked={categoryLibraryOptions.sortBy === mode}
|
||||
checkedIcon={mode === 'random' ? <Replay /> : undefined}
|
||||
checkedIcon={mode === 'random' ? <Replay color="primary" /> : undefined}
|
||||
sortDescending={categoryLibraryOptions.sortDesc}
|
||||
onClick={() =>
|
||||
mode !== categoryLibraryOptions.sortBy
|
||||
|
||||
@@ -1119,6 +1119,10 @@ msgstr "Could not log out from KOReader Sync"
|
||||
msgid "Could not migrate manga"
|
||||
msgstr "Could not migrate manga"
|
||||
|
||||
#: src/features/library/components/LibraryToolbarMenu.tsx
|
||||
msgid "Could not open random entry"
|
||||
msgstr "Could not open random entry"
|
||||
|
||||
#: src/features/downloads/screens/DownloadQueue.tsx
|
||||
msgid "Could not remove all downloads from the queue"
|
||||
msgstr "Could not remove all downloads from the queue"
|
||||
@@ -2784,6 +2788,10 @@ msgstr "Open in WebView"
|
||||
msgid "Open page on exit"
|
||||
msgstr "Open page on exit"
|
||||
|
||||
#: src/features/library/components/LibraryToolbarMenu.tsx
|
||||
msgid "Open random entry"
|
||||
msgstr "Open random entry"
|
||||
|
||||
#: src/features/settings/screens/WebUISettings.tsx
|
||||
msgid "Open the WebUI when starting the server"
|
||||
msgstr "Open the WebUI when starting the server"
|
||||
|
||||
Reference in New Issue
Block a user