Rename "childRoutes" to "children"
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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)}
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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,
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user