diff --git a/frontend/src/component/menu/__tests__/__snapshots__/routes-test.jsx.snap b/frontend/src/component/menu/__tests__/__snapshots__/routes-test.jsx.snap index 6ed3d00a54..b5a1354ce6 100644 --- a/frontend/src/component/menu/__tests__/__snapshots__/routes-test.jsx.snap +++ b/frontend/src/component/menu/__tests__/__snapshots__/routes-test.jsx.snap @@ -2,6 +2,138 @@ exports[`returns all baseRoutes 1`] = ` Array [ + Object { + "component": [Function], + "layout": "main", + "menu": Object {}, + "parent": "/projects", + "path": "/projects/create", + "title": "Create", + "type": "protected", + }, + Object { + "component": [Function], + "layout": "main", + "menu": Object {}, + "parent": "/archive", + "path": "/projects/:id/archived", + "title": ":name", + "type": "protected", + }, + Object { + "component": [Function], + "layout": "main", + "menu": Object {}, + "parent": "/projects/:id/features/:name/:activeTab", + "path": "/projects/:id/features/:name/:activeTab/copy", + "title": "Copy", + "type": "protected", + }, + Object { + "component": [Function], + "layout": "main", + "menu": Object {}, + "parent": "/projects/:id/features/:name/:activeTab", + "path": "/projects/:id/features2/:name/:activeTab/copy", + "title": "Copy", + "type": "protected", + }, + Object { + "component": [Function], + "flags": "E", + "layout": "main", + "menu": Object {}, + "parent": "/projects", + "path": "/projects/:projectId/features2/:featureId", + "title": "FeatureView2", + "type": "protected", + }, + Object { + "component": [Function], + "layout": "main", + "menu": Object {}, + "parent": "/projects", + "path": "/projects/:id/features/:name/:activeTab", + "title": ":name", + "type": "protected", + }, + Object { + "component": [Function], + "layout": "main", + "menu": Object {}, + "parent": "/projects", + "path": "/projects/:id/create-toggle", + "title": "Create", + "type": "protected", + }, + Object { + "component": [Function], + "flag": "P", + "layout": "main", + "menu": Object {}, + "parent": "/projects", + "path": "/projects/:id/:activeTab", + "title": ":id", + "type": "protected", + }, + Object { + "component": [Function], + "flag": "P", + "layout": "main", + "menu": Object {}, + "parent": "/projects", + "path": "/projects/:id", + "title": ":id", + "type": "protected", + }, + Object { + "component": [Function], + "layout": "main", + "menu": Object { + "mobile": true, + }, + "path": "/projects", + "title": "Projects", + "type": "protected", + }, + Object { + "component": [Function], + "layout": "main", + "menu": Object {}, + "parent": "/tag-types", + "path": "/tag-types/create", + "title": "Create", + "type": "protected", + }, + Object { + "component": [Function], + "layout": "main", + "menu": Object {}, + "parent": "/tag-types", + "path": "/tag-types/edit/:name", + "title": ":name", + "type": "protected", + }, + Object { + "component": [Function], + "layout": "main", + "menu": Object { + "advanced": true, + "mobile": true, + }, + "path": "/tag-types", + "title": "Tag types", + "type": "protected", + }, + Object { + "component": [Function], + "layout": "main", + "menu": Object {}, + "parent": "/tags", + "path": "/tags/create", + "title": "Create", + "type": "protected", + }, Object { "component": [Function], "layout": "main", @@ -157,139 +289,6 @@ Array [ "title": "Context Fields", "type": "protected", }, - Object { - "component": [Function], - "layout": "main", - "menu": Object {}, - "parent": "/projects", - "path": "/projects/create", - "title": "Create", - "type": "protected", - }, - Object { - "component": [Function], - "layout": "main", - "menu": Object {}, - "parent": "/archive", - "path": "/projects/:id/archived", - "title": ":name", - "type": "protected", - }, - Object { - "component": [Function], - "layout": "main", - "menu": Object {}, - "parent": "/projects/:id/features/:name/:activeTab", - "path": "/projects/:id/features/:name/:activeTab/copy", - "title": "Copy", - "type": "protected", - }, - Object { - "component": [Function], - "layout": "main", - "menu": Object {}, - "parent": "/projects/:id/features/:name/:activeTab", - "path": "/projects/:id/features2/:name/:activeTab/copy", - "title": "Copy", - "type": "protected", - }, - Object { - "component": [Function], - "flags": "E", - "layout": "main", - "menu": Object {}, - "parent": "/projects", - "path": "/projects/:projectId/features2/:featureId", - "title": "FeatureView2", - "type": "protected", - }, - Object { - "component": [Function], - "layout": "main", - "menu": Object {}, - "parent": "/projects", - "path": "/projects/:id/features/:name/:activeTab", - "title": ":name", - "type": "protected", - }, - Object { - "component": [Function], - "layout": "main", - "menu": Object {}, - "parent": "/projects", - "path": "/projects/:id/create-toggle", - "title": "Create", - "type": "protected", - }, - Object { - "component": [Function], - "flag": "P", - "layout": "main", - "menu": Object {}, - "parent": "/projects", - "path": "/projects/:id/:activeTab", - "title": ":id", - "type": "protected", - }, - Object { - "component": [Function], - "flag": "P", - "layout": "main", - "menu": Object {}, - "parent": "/projects", - "path": "/projects/:id", - "title": ":id", - "type": "protected", - }, - Object { - "component": [Function], - "flag": "P", - "layout": "main", - "menu": Object { - "mobile": true, - }, - "path": "/projects", - "title": "Projects", - "type": "protected", - }, - Object { - "component": [Function], - "layout": "main", - "menu": Object {}, - "parent": "/tag-types", - "path": "/tag-types/create", - "title": "Create", - "type": "protected", - }, - Object { - "component": [Function], - "layout": "main", - "menu": Object {}, - "parent": "/tag-types", - "path": "/tag-types/edit/:name", - "title": ":name", - "type": "protected", - }, - Object { - "component": [Function], - "layout": "main", - "menu": Object { - "advanced": true, - "mobile": true, - }, - "path": "/tag-types", - "title": "Tag types", - "type": "protected", - }, - Object { - "component": [Function], - "layout": "main", - "menu": Object {}, - "parent": "/tags", - "path": "/tags/create", - "title": "Create", - "type": "protected", - }, Object { "component": [Function], "layout": "main",