diff --git a/src/utils/styles/ListPageCreateButton.scss b/src/utils/styles/ListPageCreateButton.scss deleted file mode 100644 index 04bb352b4..000000000 --- a/src/utils/styles/ListPageCreateButton.scss +++ /dev/null @@ -1,3 +0,0 @@ -.list-page-create-button-margin { - margin: 1.5rem 0 1rem 0; -} diff --git a/src/views/catalog/wizard/tabs/disks/WizardDisksTab.tsx b/src/views/catalog/wizard/tabs/disks/WizardDisksTab.tsx index 19455a43f..aac50953c 100644 --- a/src/views/catalog/wizard/tabs/disks/WizardDisksTab.tsx +++ b/src/views/catalog/wizard/tabs/disks/WizardDisksTab.tsx @@ -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(); @@ -32,7 +30,7 @@ const WizardDisksTab: WizardTab = ({ tabsData, updateTabsData, updateVM, vm }) = const [data, filteredData, onFilterChange] = useListPageFilter(disks, filters); return ( -
+ updateVM(newVM)} @@ -89,7 +87,7 @@ const WizardDisksTab: WizardTab = ({ tabsData, updateTabsData, updateVM, vm }) = /> -
+ ); }; diff --git a/src/views/catalog/wizard/tabs/disks/wizard-disk-tab.scss b/src/views/catalog/wizard/tabs/disks/wizard-disk-tab.scss deleted file mode 100644 index 052311ac5..000000000 --- a/src/views/catalog/wizard/tabs/disks/wizard-disk-tab.scss +++ /dev/null @@ -1,11 +0,0 @@ -.wizard-disk-tab { - height: 100%; - - .co-m-pane__body { - height: 100%; - } - - .pf-c-sidebar__panel { - padding-top: var(--pf-global--spacer--lg); - } -} diff --git a/src/views/catalog/wizard/tabs/network/WizardNetworkTab.tsx b/src/views/catalog/wizard/tabs/network/WizardNetworkTab.tsx index 1c17f818b..cd384fc4c 100644 --- a/src/views/catalog/wizard/tabs/network/WizardNetworkTab.tsx +++ b/src/views/catalog/wizard/tabs/network/WizardNetworkTab.tsx @@ -6,13 +6,11 @@ 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(); @@ -20,7 +18,7 @@ const WizardNetworkTab: WizardTab = ({ updateVM, vm }) => { const actionText = t('Add network interface'); return ( -
+ updateVM(newVM)} @@ -47,7 +45,7 @@ const WizardNetworkTab: WizardTab = ({ updateVM, vm }) => { -
+ ); }; diff --git a/src/views/catalog/wizard/tabs/network/wizard-network-tab.scss b/src/views/catalog/wizard/tabs/network/wizard-network-tab.scss deleted file mode 100644 index cca5e9a05..000000000 --- a/src/views/catalog/wizard/tabs/network/wizard-network-tab.scss +++ /dev/null @@ -1,11 +0,0 @@ -.wizard-network-tab { - height: 100%; - - .co-m-pane__body { - height: 100%; - } - - .pf-c-sidebar__panel { - padding-top: var(--pf-global--spacer--lg); - } -} diff --git a/src/views/templates/details/tabs/network/TemplateNetworkPage.tsx b/src/views/templates/details/tabs/network/TemplateNetworkPage.tsx index cd00dff8a..6fa293847 100644 --- a/src/views/templates/details/tabs/network/TemplateNetworkPage.tsx +++ b/src/views/templates/details/tabs/network/TemplateNetworkPage.tsx @@ -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; }; @@ -37,7 +34,7 @@ const TemplateNetwork: FC = ({ obj: template }) => { ); return ( -
+ onResourceUpdate={onSubmitTemplate} resource={template}> @@ -64,7 +61,7 @@ const TemplateNetwork: FC<TemplateNetworkProps> = ({ obj: template }) => { <NetworkInterfaceList template={template} /> </SidebarEditor> </ListPageBody> - </div> + </PageSection> ); }; diff --git a/src/views/templates/details/tabs/network/template-network-tab.scss b/src/views/templates/details/tabs/network/template-network-tab.scss deleted file mode 100644 index b25ca94ce..000000000 --- a/src/views/templates/details/tabs/network/template-network-tab.scss +++ /dev/null @@ -1,15 +0,0 @@ -.template-network-tab { - height: 100%; - - .co-m-pane__body { - height: 100%; - } - - .pf-c-sidebar__panel { - padding-top: var(--pf-global--spacer--lg); - } - - &__button { - margin-bottom: 0.5rem; - } -} diff --git a/src/views/virtualmachines/details/tabs/configuration/network/NetworkTab.tsx b/src/views/virtualmachines/details/tabs/configuration/network/NetworkTab.tsx index d8aebc19f..ad4352014 100644 --- a/src/views/virtualmachines/details/tabs/configuration/network/NetworkTab.tsx +++ b/src/views/virtualmachines/details/tabs/configuration/network/NetworkTab.tsx @@ -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 }) => {