From 69f651861779ff058b841e358582bc5300b4ed29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C5=A9=20H=E1=BB=AFu=20C=C6=B0=E1=BB=9Dng?= Date: Tue, 3 Dec 2019 18:22:23 +0700 Subject: [PATCH] =?UTF-8?q?[CLD-499]=20Create=20a=20=E2=80=98Manage?= =?UTF-8?q?=E2=80=99=20page=20on=20the=20client=20side=20=20(#182)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * [CLD-499] create manage page on the client side * Update snapshot --- .../pages/__tests__/__snapshots__/my-apps.tsx.snap | 2 +- src/components/pages/my-apps.tsx | 2 +- src/components/ui/__tests__/__snapshots__/menu.tsx.snap | 6 +++--- src/components/ui/menu.tsx | 4 ++-- src/constants/routes.ts | 3 ++- src/core/__tests__/__snapshots__/router.tsx.snap | 2 +- 6 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/components/pages/__tests__/__snapshots__/my-apps.tsx.snap b/src/components/pages/__tests__/__snapshots__/my-apps.tsx.snap index e1b497b545..100bacd874 100644 --- a/src/components/pages/__tests__/__snapshots__/my-apps.tsx.snap +++ b/src/components/pages/__tests__/__snapshots__/my-apps.tsx.snap @@ -61,7 +61,7 @@ exports[`MyApps should match a snapshot when LOADING false 1`] = ` "totalCount": 6, } } - title="Installed Apps" + title="Manage Apps" /> = ({ handleLaunchApp(app)} onSettingsClick={(app: AppSummaryModel) => { diff --git a/src/components/ui/__tests__/__snapshots__/menu.tsx.snap b/src/components/ui/__tests__/__snapshots__/menu.tsx.snap index e20f69e127..a6066ce703 100644 --- a/src/components/ui/__tests__/__snapshots__/menu.tsx.snap +++ b/src/components/ui/__tests__/__snapshots__/menu.tsx.snap @@ -27,13 +27,13 @@ exports[`Menu should match a snapshot 1`] = ` "url": "/client/apps", }, Object { - "icon": , "key": "MY_APPS", - "title": "Installed", + "title": "Manage", "type": "PRIMARY", - "url": "/client/installed", + "url": "/client/manage", }, Object { "callback": [Function], diff --git a/src/components/ui/menu.tsx b/src/components/ui/menu.tsx index 9959496e9d..e895e96928 100644 --- a/src/components/ui/menu.tsx +++ b/src/components/ui/menu.tsx @@ -160,11 +160,11 @@ export const generateMenuConfig = ( icon: }, { - title: 'Installed', + title: 'Manage', key: 'MY_APPS', url: Routes.MY_APPS, type: 'PRIMARY', - icon: + icon: }, { title: 'Logout', diff --git a/src/constants/routes.ts b/src/constants/routes.ts index d622fef320..9560adb933 100644 --- a/src/constants/routes.ts +++ b/src/constants/routes.ts @@ -1,6 +1,7 @@ const Routes = { CLIENT: '/client/apps', - MY_APPS: '/client/installed', + INSTALLED_APPS: '/client/installed', + MY_APPS: '/client/manage', MY_APPS_PAGINATE: '/client/installed/:page', DEVELOPER: '/developer', DEVELOPER_MY_APPS: '/developer/apps', diff --git a/src/core/__tests__/__snapshots__/router.tsx.snap b/src/core/__tests__/__snapshots__/router.tsx.snap index e1c7a4bd42..b7a159c96a 100644 --- a/src/core/__tests__/__snapshots__/router.tsx.snap +++ b/src/core/__tests__/__snapshots__/router.tsx.snap @@ -98,7 +98,7 @@ exports[`Router should match a snapshot 1`] = ` } exact={true} fetcher={true} - path="/client/installed" + path="/client/manage" />