Skip to content

Commit

Permalink
[web] Add overview namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
joseivanlopez committed Dec 2, 2022
1 parent 320be64 commit 3df4c30
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 6 deletions.
1 change: 0 additions & 1 deletion web/src/components/core/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export { default as InstallationProgress } from "./InstallationProgress";
export { default as InstallButton } from "./InstallButton";
export { default as InstallerSkeleton } from "./InstallerSkeleton";
export { default as KebabMenu } from "./KebabMenu";
export { default as Overview } from "./Overview";
export { default as PasswordAndConfirmationInput } from "./PasswordAndConfirmationInput";
export { default as Popup } from "./Popup";
export { default as ProgressReport } from "./ProgressReport";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import { Button, Flex, FlexItem } from "@patternfly/react-core";
import { Title, PageIcon, PageActions, MainActions } from "@components/layout";
import { Section, InstallButton } from "@components/core";
import { LanguageSelector } from "@components/language";
import { OverviewSection as Storage } from "@components/storage";
import { StorageSection } from "@components/overview";
import { Users } from "@components/users";
import { Network } from "@components/network";

Expand Down Expand Up @@ -73,7 +73,7 @@ function Overview() {
<Section key="network" title="Network" icon={NetworkIcon}>
<Network />
</Section>,
<Storage key="storage" showErrors />,
<StorageSection key="storage" showErrors />,
<Users key="users" showErrors={showErrors} />
];

Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const reducer = (state, action) => {
}
};

export default function OverviewSection({ showErrors }) {
export default function StorageSection ({ showErrors }) {
const client = useInstallerClient();
const { cancellablePromise } = useCancellablePromise();
const navigate = useNavigate();
Expand Down
23 changes: 23 additions & 0 deletions web/src/components/overview/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/*
* Copyright (c) [2022] SUSE LLC
*
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as published
* by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, contact SUSE LLC.
*
* To contact SUSE LLC about this file by physical or electronic mail, you may
* find current contact information at www.suse.com.
*/

export { default as Overview } from "./Overview";
export { default as StorageSection } from "./StorageSection";
1 change: 0 additions & 1 deletion web/src/components/storage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
* find current contact information at www.suse.com.
*/

export { default as OverviewSection } from "./OverviewSection";
export { default as ProposalPage } from "./ProposalPage";
export { default as ProposalTargetSection } from "./ProposalTargetSection";
export { default as ProposalSettingsSection } from "./ProposalSettingsSection";
Expand Down
2 changes: 1 addition & 1 deletion web/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import { createClient } from "@/client";

import App from "@/App";
import Main from "@/Main";
import { Overview } from "@components/core";
import { Overview } from "@components/overview";
import { ProductSelectionPage } from "@components/software";
import { ProposalPage as StoragePage } from "@components/storage";

Expand Down

0 comments on commit 3df4c30

Please sign in to comment.