Skip to content

Commit

Permalink
Merge pull request #2170 from metalice/CNV-48097-fix-some-styling-in-…
Browse files Browse the repository at this point in the history
…tabs

CNV-48097: Fix tabs styling to match
  • Loading branch information
openshift-merge-bot[bot] authored Sep 11, 2024
2 parents ac28f8b + 7df4724 commit 3160948
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 57 deletions.
3 changes: 0 additions & 3 deletions src/utils/styles/ListPageCreateButton.scss

This file was deleted.

8 changes: 3 additions & 5 deletions src/views/catalog/wizard/tabs/disks/WizardDisksTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@ import {
useListPageFilter,
VirtualizedTable,
} from '@openshift-console/dynamic-plugin-sdk';
import { Flex, FlexItem } from '@patternfly/react-core';
import { Flex, FlexItem, PageSection, PageSectionVariants } from '@patternfly/react-core';

import DiskRow from './components/DiskRow';
import useDiskColumns from './hooks/useDiskColumns';
import useDisksFilters from './hooks/useDisksFilters';
import useWizardDisksTableData from './hooks/useWizardDisksTableData';

import './wizard-disk-tab.scss';

const WizardDisksTab: WizardTab = ({ tabsData, updateTabsData, updateVM, vm }) => {
const { createModal } = useModal();
const columns = useDiskColumns();
Expand All @@ -32,7 +30,7 @@ const WizardDisksTab: WizardTab = ({ tabsData, updateTabsData, updateVM, vm }) =
const [data, filteredData, onFilterChange] = useListPageFilter(disks, filters);

return (
<div className="wizard-disk-tab">
<PageSection variant={PageSectionVariants.light}>
<ListPageBody>
<SidebarEditor
onResourceUpdate={(newVM) => updateVM(newVM)}
Expand Down Expand Up @@ -89,7 +87,7 @@ const WizardDisksTab: WizardTab = ({ tabsData, updateTabsData, updateVM, vm }) =
/>
</SidebarEditor>
</ListPageBody>
</div>
</PageSection>
);
};

Expand Down
11 changes: 0 additions & 11 deletions src/views/catalog/wizard/tabs/disks/wizard-disk-tab.scss

This file was deleted.

8 changes: 3 additions & 5 deletions src/views/catalog/wizard/tabs/network/WizardNetworkTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,19 @@ import SidebarEditor from '@kubevirt-utils/components/SidebarEditor/SidebarEdito
import { useKubevirtTranslation } from '@kubevirt-utils/hooks/useKubevirtTranslation';
import { PATHS_TO_HIGHLIGHT } from '@kubevirt-utils/resources/vm/utils/constants';
import { ListPageBody, ListPageCreateButton } from '@openshift-console/dynamic-plugin-sdk';
import { PageSection, PageSectionVariants } from '@patternfly/react-core';

import NetworkInterfaceList from './components/list/NetworkInterfaceList';
import WizardNetworkInterfaceModal from './components/modal/WizardNetworkInterfaceModal';

import 'src/utils/styles/ListPageCreateButton.scss';
import './wizard-network-tab.scss';

const WizardNetworkTab: WizardTab = ({ updateVM, vm }) => {
const { t } = useKubevirtTranslation();
const { createModal } = useModal();

const actionText = t('Add network interface');

return (
<div className="wizard-network-tab">
<PageSection variant={PageSectionVariants.light}>
<ListPageBody>
<SidebarEditor
onResourceUpdate={(newVM) => updateVM(newVM)}
Expand All @@ -47,7 +45,7 @@ const WizardNetworkTab: WizardTab = ({ updateVM, vm }) => {
<NetworkInterfaceList vm={vm} />
</SidebarEditor>
</ListPageBody>
</div>
</PageSection>
);
};

Expand Down
11 changes: 0 additions & 11 deletions src/views/catalog/wizard/tabs/network/wizard-network-tab.scss

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,13 @@ import { useModal } from '@kubevirt-utils/components/ModalProvider/ModalProvider
import SidebarEditor from '@kubevirt-utils/components/SidebarEditor/SidebarEditor';
import { useKubevirtTranslation } from '@kubevirt-utils/hooks/useKubevirtTranslation';
import { k8sUpdate, ListPageBody } from '@openshift-console/dynamic-plugin-sdk';
import { Button, Title } from '@patternfly/react-core';
import { Button, PageSection, PageSectionVariants, Title } from '@patternfly/react-core';

import useEditTemplateAccessReview from '../../hooks/useIsTemplateEditable';

import NetworkInterfaceList from './components/list/NetworkInterfaceList';
import TemplatesNetworkInterfaceModal from './components/modal/TemplatesNetworkInterfaceModal';

import 'src/utils/styles/ListPageCreateButton.scss';
import './template-network-tab.scss';

type TemplateNetworkProps = {
obj: V1Template;
};
Expand All @@ -37,7 +34,7 @@ const TemplateNetwork: FC<TemplateNetworkProps> = ({ obj: template }) => {
);

return (
<div className="template-network-tab">
<PageSection variant={PageSectionVariants.light}>
<ListPageBody>
<SidebarEditor<V1Template> onResourceUpdate={onSubmitTemplate} resource={template}>
<Title className="list-page-create-button-margin" headingLevel="h2">
Expand All @@ -64,7 +61,7 @@ const TemplateNetwork: FC<TemplateNetworkProps> = ({ obj: template }) => {
<NetworkInterfaceList template={template} />
</SidebarEditor>
</ListPageBody>
</div>
</PageSection>
);
};

Expand Down
15 changes: 0 additions & 15 deletions src/views/templates/details/tabs/network/template-network-tab.scss

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import { ConfigurationInnerTabProps } from '../utils/types';
import AddNetworkInterfaceButton from './components/AddNetworkInterfaceButton';
import NetworkInterfaceList from './components/list/NetworkInterfaceList';

import 'src/utils/styles/ListPageCreateButton.scss';
import './network-tab.scss';

const NetworkTab: FC<ConfigurationInnerTabProps> = ({ vm, vmi }) => {
Expand Down

0 comments on commit 3160948

Please sign in to comment.