Skip to content

Commit

Permalink
Move TopBar/Footer part back to src/pages/workspaces.
Browse files Browse the repository at this point in the history
  • Loading branch information
cahrens committed Feb 2, 2024
1 parent e316da5 commit d0f8c6a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 16 deletions.
17 changes: 16 additions & 1 deletion src/pages/workspaces/WorkspaceMigration.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,19 @@
import { WorkspaceMigrationPage } from 'src/workspaces/migration/WorkspaceMigrationPage';
import { div, h } from 'react-hyperscript-helpers';
import FooterWrapper from 'src/components/FooterWrapper';
import TopBar from 'src/components/TopBar';
import * as Nav from 'src/libs/nav';
import { BillingProjectList } from 'src/workspaces/migration/BillingProjectList';
import { MigrationInformation } from 'src/workspaces/migration/WorkspaceInformation';

const WorkspaceMigrationPage = () => {
return h(FooterWrapper, [
h(TopBar, { title: 'Workspace Multi-Region Bucket Migrations', href: Nav.getLink('workspace-migration') }, []),
div({ role: 'main', style: { display: 'flex', flex: '1 1 auto', flexFlow: 'column' } }, [
h(MigrationInformation, {}),
h(BillingProjectList, {}),
]),
]);
};

export const navPaths = [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@ import { icon, Link } from '@terra-ui-packages/components';
import { useEffect, useState } from 'react';
import { div, h, h2, p } from 'react-hyperscript-helpers';
import Collapse from 'src/components/Collapse';
import FooterWrapper from 'src/components/FooterWrapper';
import TopBar from 'src/components/TopBar';
import colors from 'src/libs/colors';
import * as Nav from 'src/libs/nav';
import { getLocalPref, setLocalPref } from 'src/libs/prefs';
import * as Style from 'src/libs/style';
import * as Utils from 'src/libs/utils';
import { BillingProjectList } from 'src/workspaces/migration/BillingProjectList';

const MigrationInformation = () => {
export const MigrationInformation = () => {
const persistenceId = 'multiregionBucketMigration';
const [infoPanelOpen, setInfoPanelOpen] = useState(() => getLocalPref(persistenceId)?.infoPanelOpen);

Expand Down Expand Up @@ -69,13 +65,3 @@ const MigrationInformation = () => {
]),
]);
};

export const WorkspaceMigrationPage = () => {
return h(FooterWrapper, [
h(TopBar, { title: 'Workspace Multi-Region Bucket Migrations', href: Nav.getLink('workspace-migration') }, []),
div({ role: 'main', style: { display: 'flex', flex: '1 1 auto', flexFlow: 'column' } }, [
h(MigrationInformation, {}),
h(BillingProjectList, {}),
]),
]);
};

0 comments on commit d0f8c6a

Please sign in to comment.