src: Rename "V2" folders to just Wizard

This replaces all occurences of "CreateImageWizardV2" with just "CreateImageWizard" as it is the only version now.
This commit is contained in:
regexowl 2024-07-16 17:10:37 +02:00 committed by Ondřej Ezr
parent b1e5a8c7c6
commit 4fb37c187e
93 changed files with 20 additions and 22 deletions

View file

@ -1,20 +0,0 @@
import { UNIT_GIB, UNIT_KIB, UNIT_MIB } from '../../../constants';
import { Units } from '../steps/FileSystem/FileSystemConfiguration';
export const parseSizeUnit = (bytesize: string) => {
let size;
let unit: Units = 'GiB';
if (parseInt(bytesize) % UNIT_GIB === 0) {
size = parseInt(bytesize) / UNIT_GIB;
unit = 'GiB';
} else if (parseInt(bytesize) % UNIT_MIB === 0) {
size = parseInt(bytesize) / UNIT_MIB;
unit = 'MiB';
} else if (parseInt(bytesize) % UNIT_KIB === 0) {
size = parseInt(bytesize) / UNIT_KIB;
unit = 'KiB';
}
return [String(size), unit];
};