From 3b597cd80ab4de2417778e502cf33f00f428274e Mon Sep 17 00:00:00 2001 From: Jake McDermott Date: Tue, 28 Jul 2020 20:27:25 -0400 Subject: [PATCH] Delete portal mode --- awx/ui_next/src/routeConfig.js | 6 ---- awx/ui_next/src/screens/Portal/Portal.jsx | 28 ------------------ .../src/screens/Portal/Portal.test.jsx | 29 ------------------- awx/ui_next/src/screens/Portal/index.js | 1 - 4 files changed, 64 deletions(-) delete mode 100644 awx/ui_next/src/screens/Portal/Portal.jsx delete mode 100644 awx/ui_next/src/screens/Portal/Portal.test.jsx delete mode 100644 awx/ui_next/src/screens/Portal/index.js diff --git a/awx/ui_next/src/routeConfig.js b/awx/ui_next/src/routeConfig.js index 4b43dc4993..93c214b10b 100644 --- a/awx/ui_next/src/routeConfig.js +++ b/awx/ui_next/src/routeConfig.js @@ -12,7 +12,6 @@ import { Jobs } from './screens/Job'; import ManagementJobs from './screens/ManagementJob'; import NotificationTemplates from './screens/NotificationTemplate'; import Organizations from './screens/Organization'; -import Portal from './screens/Portal'; import Projects from './screens/Project'; import Schedules from './screens/Schedule'; import AuthSettings from './screens/AuthSetting'; @@ -49,11 +48,6 @@ function getRouteConfig(i18n) { path: '/schedules', screen: Schedules, }, - { - title: i18n._(t`My View`), - path: '/portal', - screen: Portal, - }, ], }, { diff --git a/awx/ui_next/src/screens/Portal/Portal.jsx b/awx/ui_next/src/screens/Portal/Portal.jsx deleted file mode 100644 index 6651fc25d2..0000000000 --- a/awx/ui_next/src/screens/Portal/Portal.jsx +++ /dev/null @@ -1,28 +0,0 @@ -import React, { Component, Fragment } from 'react'; -import { withI18n } from '@lingui/react'; -import { t } from '@lingui/macro'; -import { - PageSection, - PageSectionVariants, - Title, -} from '@patternfly/react-core'; - -class Portal extends Component { - render() { - const { i18n } = this.props; - const { light } = PageSectionVariants; - - return ( - - - - {i18n._(t`My View`)} - - - - - ); - } -} - -export default withI18n()(Portal); diff --git a/awx/ui_next/src/screens/Portal/Portal.test.jsx b/awx/ui_next/src/screens/Portal/Portal.test.jsx deleted file mode 100644 index cee4a93678..0000000000 --- a/awx/ui_next/src/screens/Portal/Portal.test.jsx +++ /dev/null @@ -1,29 +0,0 @@ -import React from 'react'; - -import { mountWithContexts } from '../../../testUtils/enzymeHelpers'; - -import Portal from './Portal'; - -describe('', () => { - let pageWrapper; - let pageSections; - let title; - - beforeEach(() => { - pageWrapper = mountWithContexts(); - pageSections = pageWrapper.find('PageSection'); - title = pageWrapper.find('Title'); - }); - - afterEach(() => { - pageWrapper.unmount(); - }); - - test('initially renders without crashing', () => { - expect(pageWrapper.length).toBe(1); - expect(pageSections.length).toBe(2); - expect(title.length).toBe(1); - expect(title.props().size).toBe('2xl'); - expect(pageSections.first().props().variant).toBe('light'); - }); -}); diff --git a/awx/ui_next/src/screens/Portal/index.js b/awx/ui_next/src/screens/Portal/index.js deleted file mode 100644 index f227015fb9..0000000000 --- a/awx/ui_next/src/screens/Portal/index.js +++ /dev/null @@ -1 +0,0 @@ -export { default } from './Portal';