diff --git a/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx b/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx index ea93ddae..9a1e6162 100644 --- a/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx +++ b/src/Components/CreateImageWizardV2/steps/FileSystem/FileSystemConfiguration.tsx @@ -26,6 +26,7 @@ import { changePartitionMinSize, changePartitionMountpoint, selectImageTypes, + removePartition, selectPartitions, } from '../../../../store/wizardSlice'; import UsrSubDirectoriesDisabled from '../../UsrSubDirectoriesDisabled'; @@ -163,6 +164,11 @@ const getSuffix = (mountpoint: string) => { const Row = ({ partition }: RowPropTypes) => { const [units, setUnits] = useState('MiB'); + const dispatch = useAppDispatch(); + + const handleRemovePartition = (id: string) => { + dispatch(removePartition(id)); + }; return ( @@ -184,9 +190,9 @@ const Row = ({ partition }: RowPropTypes) => {