fix(striker-ui): apply new manage host to replace old prepare host form

main
Tsu-ba-me 11 months ago
parent 78820bd95a
commit d2c8d03b5c
  1. 14
      striker-ui/pages/manage-element/index.tsx

@ -8,15 +8,16 @@ import Grid from '../../components/Grid';
import handleAPIError from '../../lib/handleAPIError'; import handleAPIError from '../../lib/handleAPIError';
import Header from '../../components/Header'; import Header from '../../components/Header';
import ManageFencePanel from '../../components/ManageFence'; import ManageFencePanel from '../../components/ManageFence';
import { ManageHost } from '../../components/ManageHost';
import ManageManifestPanel from '../../components/ManageManifest'; import ManageManifestPanel from '../../components/ManageManifest';
import ManageUpsPanel from '../../components/ManageUps'; import ManageUpsPanel from '../../components/ManageUps';
import { Panel } from '../../components/Panels'; import { Panel, PanelHeader } from '../../components/Panels';
import PrepareHostForm from '../../components/PrepareHostForm';
import PrepareNetworkForm from '../../components/PrepareNetworkForm'; import PrepareNetworkForm from '../../components/PrepareNetworkForm';
import Spinner from '../../components/Spinner'; import Spinner from '../../components/Spinner';
import Tab from '../../components/Tab'; import Tab from '../../components/Tab';
import TabContent from '../../components/TabContent'; import TabContent from '../../components/TabContent';
import Tabs from '../../components/Tabs'; import Tabs from '../../components/Tabs';
import { HeaderText } from '../../components/Text';
import useIsFirstRender from '../../hooks/useIsFirstRender'; import useIsFirstRender from '../../hooks/useIsFirstRender';
const TAB_ID_PREPARE_HOST = 'prepare-host'; const TAB_ID_PREPARE_HOST = 'prepare-host';
@ -42,7 +43,14 @@ const PrepareHostTabContent: FC = () => (
layout={{ layout={{
'preparehost-left-column': {}, 'preparehost-left-column': {},
'preparehost-center-column': { 'preparehost-center-column': {
children: <PrepareHostForm />, children: (
<Panel>
<PanelHeader>
<HeaderText>Hosts</HeaderText>
</PanelHeader>
<ManageHost />
</Panel>
),
...STEP_CONTENT_GRID_CENTER_COLUMN, ...STEP_CONTENT_GRID_CENTER_COLUMN,
}, },
}} }}

Loading…
Cancel
Save