fix: Console warnings from help-center routes (#5117)

This commit is contained in:
Sivin Varghese
2022-07-26 19:59:46 +05:30
committed by GitHub
parent 6a4c0a1578
commit 699b01c1d1

View File

@@ -36,7 +36,7 @@ const portalRoutes = [
}, },
{ {
path: getPortalRoute(':portalSlug'), path: getPortalRoute(':portalSlug'),
name: 'edit_portal', name: 'portal_slug',
roles: ['administrator', 'agent'], roles: ['administrator', 'agent'],
component: ShowPortal, component: ShowPortal,
}, },
@@ -70,7 +70,7 @@ const articleRoutes = [
}, },
{ {
path: getPortalRoute(':portalSlug/:locale/articles/mine'), path: getPortalRoute(':portalSlug/:locale/articles/mine'),
name: 'list_all_locale_articles', name: 'list_mine_articles',
roles: ['administrator', 'agent'], roles: ['administrator', 'agent'],
component: ListMyArticles, component: ListMyArticles,
}, },
@@ -111,7 +111,7 @@ const categoryRoutes = [
path: getPortalRoute( path: getPortalRoute(
':portalSlug/:locale/categories/:categorySlug/articles' ':portalSlug/:locale/categories/:categorySlug/articles'
), ),
name: 'show_category', name: 'show_category_articles',
roles: ['administrator', 'agent'], roles: ['administrator', 'agent'],
component: ListCategoryArticles, component: ListCategoryArticles,
}, },