Rename "Download queue" desktop nav item to "Downloads"
"Download queue" is too long for the side nav menu
This commit is contained in:
@@ -36,7 +36,7 @@ import { VirtuosoPersisted } from '@/lib/virtuoso/Component/VirtuosoPersisted.ts
|
||||
export const DownloadQueue: React.FC = () => {
|
||||
const { t } = useTranslation();
|
||||
|
||||
useAppTitle(t('download.queue.title'));
|
||||
useAppTitle(t('download.title.queue'));
|
||||
|
||||
const [reorderDownload, { reset: revertReorder }] = requestManager.useReorderChapterInDownloadQueue();
|
||||
|
||||
|
||||
@@ -65,7 +65,8 @@ const NAVIGATION_BAR_BASE_ITEMS = [
|
||||
const NAVIGATION_BAR_DESKTOP_ITEMS = [
|
||||
{
|
||||
path: AppRoutes.downloads.path,
|
||||
title: 'download.title.queue',
|
||||
title: 'download.title.download',
|
||||
moreTitle: 'download.title.queue',
|
||||
SelectedIconComponent: GetAppIcon,
|
||||
IconComponent: GetAppOutlinedIcon,
|
||||
show: 'desktop',
|
||||
|
||||
@@ -26,6 +26,7 @@ export enum NavBarItemMoreGroup {
|
||||
export interface NavbarItem {
|
||||
path: StaticAppRoute;
|
||||
title: TranslationKey;
|
||||
moreTitle?: TranslationKey;
|
||||
SelectedIconComponent: OverridableComponent<SvgIconTypeMap<{}, 'svg'>>;
|
||||
IconComponent: OverridableComponent<SvgIconTypeMap<{}, 'svg'>>;
|
||||
show: 'mobile' | 'desktop' | 'both';
|
||||
|
||||
@@ -68,7 +68,10 @@ export const More = () => {
|
||||
<ListItemIcon>
|
||||
<item.IconComponent />
|
||||
</ListItemIcon>
|
||||
<ListItemText primary={t(item.title)} secondary={item.useBadge?.().title} />
|
||||
<ListItemText
|
||||
primary={t(item.moreTitle ?? item.title)}
|
||||
secondary={item.useBadge?.().title}
|
||||
/>
|
||||
</ListItemLink>
|
||||
))}
|
||||
{index !== list.length - 1 && <Divider />}
|
||||
|
||||
Reference in New Issue
Block a user