diff --git a/src/fireedge/src/client/containers/Sunstone/index.js b/src/fireedge/src/client/containers/Sunstone/index.js deleted file mode 100644 index 290d946f15..0000000000 --- a/src/fireedge/src/client/containers/Sunstone/index.js +++ /dev/null @@ -1,70 +0,0 @@ -import * as React from 'react' - -import { useParams, useHistory } from 'react-router' -import { Redirect, Route, Switch, Link } from 'react-router-dom' - -import { Container, Tabs, Tab, Box } from '@material-ui/core' - -import * as Tables from 'client/components/Tables' - -import { PATH } from 'client/router/dev' - -const TABS = { - apps: PATH.NEWSTONE.replace(':resource', 'apps'), - clusters: PATH.NEWSTONE.replace(':resource', 'clusters'), - datastores: PATH.NEWSTONE.replace(':resource', 'datastores'), - hosts: PATH.NEWSTONE.replace(':resource', 'hosts'), - images: PATH.NEWSTONE.replace(':resource', 'images'), - marketplaces: PATH.NEWSTONE.replace(':resource', 'marketplaces'), - vms: PATH.NEWSTONE.replace(':resource', 'vms') -} - -const Newstone = () => { - const history = useHistory() - const { resource } = useParams() - - const renderTabs = React.useMemo(() => ( - - {Object.keys(TABS).map(tabName => - - )} - - ), [resource]) - - return ( - - {Object.values(TABS).includes(history.location.pathname) && renderTabs} - - - - - - - - - - - - } /> - - - - ) -} - -export default Newstone