Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: #1997 route prefix should be removed + update html title
Browse files Browse the repository at this point in the history
undefined committed Jul 13, 2020
1 parent 7f762a1 commit cd66789
Showing 5 changed files with 27 additions and 24 deletions.
23 changes: 13 additions & 10 deletions packages/admin-portal/public/index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Admin Portal</title>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>

<head>
<base href="/" />
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>Admin</title>
</head>

<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
</body>

</html>
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ exports[`admin-approvals AdminApprovals should match a snapshot 1`] = `
Array [
Object {
"key": "adminApprovalRoute",
"pathname": "/admin/approvals",
"pathname": "/approvals",
},
]
}
@@ -34,7 +34,7 @@ exports[`admin-approvals AdminApprovals should match a snapshot 1`] = `
Object {
"hash": "",
"key": "adminApprovalRoute",
"pathname": "/admin/approvals",
"pathname": "/approvals",
"search": "",
},
],
@@ -47,7 +47,7 @@ exports[`admin-approvals AdminApprovals should match a snapshot 1`] = `
"location": Object {
"hash": "",
"key": "adminApprovalRoute",
"pathname": "/admin/approvals",
"pathname": "/approvals",
"search": "",
},
"push": [Function],
Original file line number Diff line number Diff line change
@@ -122,7 +122,7 @@ exports[`admin-apps AdminApprovals should match a snapshot 1`] = `
Array [
Object {
"key": "adminApps",
"pathname": "/admin/approvals",
"pathname": "/approvals",
},
]
}
@@ -138,7 +138,7 @@ exports[`admin-apps AdminApprovals should match a snapshot 1`] = `
Object {
"hash": "",
"key": "adminApps",
"pathname": "/admin/approvals",
"pathname": "/approvals",
"search": "",
},
],
@@ -151,7 +151,7 @@ exports[`admin-apps AdminApprovals should match a snapshot 1`] = `
"location": Object {
"hash": "",
"key": "adminApps",
"pathname": "/admin/approvals",
"pathname": "/approvals",
"search": "",
},
"push": [Function],
14 changes: 7 additions & 7 deletions packages/admin-portal/src/constants/routes.ts
Original file line number Diff line number Diff line change
@@ -39,13 +39,13 @@ const Routes = {
CLIENT_HELP: '/client/help',
REGISTER: '/register',
REGISTER_CONFIRM: '/register/confirm',
ADMIN: '/admin',
ADMIN_APPS: '/admin/apps',
ADMIN_APPROVALS: '/admin/approvals',
ADMIN_DEV_MANAGEMENT: '/admin/dev-management',
ADMIN_LOGIN: '/admin/login',
ADMIN_STATS: '/admin/stats',
ADMIN_BILLING: '/admin/billing',
ADMIN: '/',
ADMIN_APPS: '/apps',
ADMIN_APPROVALS: '/approvals',
ADMIN_DEV_MANAGEMENT: '/dev-management',
ADMIN_LOGIN: '/login',
ADMIN_STATS: '/stats',
ADMIN_BILLING: '/billing',
CLIENT_LOGIN: '/client/login',
DEVELOPER_LOGIN: '/developer/login',
FOUR_O_FOUR: '/404',
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ exports[`Router should match a snapshot 1`] = `
}
exact={true}
fetcher={true}
path="/admin/approvals"
path="/approvals"
/>
<Component
allow="ADMIN"

0 comments on commit cd66789

Please sign in to comment.