Rename "childRoutes" to "children"

This commit is contained in:
schroda
2026-05-28 00:01:54 +02:00
parent e973872539
commit 27c87185b1
24 changed files with 85 additions and 106 deletions

View File

@@ -268,7 +268,7 @@ export function Extensions({ tabsMenuHeight }: { tabsMenuHeight: number }) {
}}
>
<Typography>{t`You have to add a extension repository to be able to install extensions`}</Typography>
<Button component={Link} variant="contained" to={AppRoutes.settings.childRoutes.browse.path}>
<Button component={Link} variant="contained" to={AppRoutes.settings.children.browse.path}>
{t`Settings`}
</Button>
</Stack>

View File

@@ -95,7 +95,7 @@ export function ExtensionCard(props: IProps) {
return (
<Card>
<OptionalCardActionAreaLink disabled={!isInstalled} to={AppRoutes.extension.childRoutes.info.path(pkgName)}>
<OptionalCardActionAreaLink disabled={!isInstalled} to={AppRoutes.extension.children.info.path(pkgName)}>
<ListCardContent>
<ListCardAvatar
iconUrl={requestManager.getValidImgUrlFor(iconUrl)}

View File

@@ -107,7 +107,7 @@ export function Sources({ tabsMenuHeight }: { tabsMenuHeight: number }) {
useAppAction(
<>
<CustomTooltip title={t`Global Search`}>
<IconButton onClick={() => navigate(AppRoutes.sources.childRoutes.searchAll.path())} color="inherit">
<IconButton onClick={() => navigate(AppRoutes.sources.children.searchAll.path())} color="inherit">
<TravelExploreIcon />
</IconButton>
</CustomTooltip>

View File

@@ -63,8 +63,8 @@ export const SourceCard: React.FC<IProps> = (props: IProps) => {
<Card>
<CardActionArea
component={Link}
to={AppRoutes.sources.childRoutes.browse.path(id)}
state={AppRoutes.sources.childRoutes.browse.state({
to={AppRoutes.sources.children.browse.path(id)}
state={AppRoutes.sources.children.browse.state({
contentType: SourceContentType.POPULAR,
clearCache: true,
})}
@@ -105,8 +105,8 @@ export const SourceCard: React.FC<IProps> = (props: IProps) => {
{...MUIUtil.preventRippleProp()}
variant="outlined"
component={Link}
to={AppRoutes.sources.childRoutes.browse.path(id)}
state={AppRoutes.sources.childRoutes.browse.state({
to={AppRoutes.sources.children.browse.path(id)}
state={AppRoutes.sources.children.browse.state({
contentType: SourceContentType.LATEST,
clearCache: true,
})}