diff --git a/src/base/components/inputs/SortRadioInput.tsx b/src/base/components/inputs/SortRadioInput.tsx index b61ce61b..fdded6de 100644 --- a/src/base/components/inputs/SortRadioInput.tsx +++ b/src/base/components/inputs/SortRadioInput.tsx @@ -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) => ( : } {...rest} + checkedIcon={ + checkedIcon ?? (sortDescending ? : ) + } /> )); diff --git a/src/features/library/components/LibraryOptionsPanel.tsx b/src/features/library/components/LibraryOptionsPanel.tsx index c7c3766d..101543b4 100644 --- a/src/features/library/components/LibraryOptionsPanel.tsx +++ b/src/features/library/components/LibraryOptionsPanel.tsx @@ -217,7 +217,7 @@ export const LibraryOptionsPanel = ({ key={mode} label={t(label)} checked={categoryLibraryOptions.sortBy === mode} - checkedIcon={mode === 'random' ? : undefined} + checkedIcon={mode === 'random' ? : undefined} sortDescending={categoryLibraryOptions.sortDesc} onClick={() => mode !== categoryLibraryOptions.sortBy diff --git a/src/i18n/locales/en.po b/src/i18n/locales/en.po index eb99592b..236cda10 100644 --- a/src/i18n/locales/en.po +++ b/src/i18n/locales/en.po @@ -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"