From e0345ba2ab13548a20c636c957a29650c062c5a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20N=C3=B8rfjand=20Stengaard?= Date: Sun, 10 Nov 2024 21:26:34 +0100 Subject: [PATCH] Fix clientapp build errors --- .../ClientApp/src/components/Accordion.js | 2 +- .../ClientApp/src/components/DiskOverview.js | 13 ------------- .../ClientApp/src/components/GptDetails.js | 2 +- .../ClientApp/src/components/Part.js | 2 +- 4 files changed, 3 insertions(+), 16 deletions(-) diff --git a/src/Hst.Imager.GuiApp/ClientApp/src/components/Accordion.js b/src/Hst.Imager.GuiApp/ClientApp/src/components/Accordion.js index 96cc858..2e9a76b 100644 --- a/src/Hst.Imager.GuiApp/ClientApp/src/components/Accordion.js +++ b/src/Hst.Imager.GuiApp/ClientApp/src/components/Accordion.js @@ -1,4 +1,4 @@ -import * as React from 'react'; +import * as React from 'react'; import MuiAccordion from '@mui/material/Accordion'; import AccordionDetails from '@mui/material/AccordionDetails'; import AccordionSummary from '@mui/material/AccordionSummary'; diff --git a/src/Hst.Imager.GuiApp/ClientApp/src/components/DiskOverview.js b/src/Hst.Imager.GuiApp/ClientApp/src/components/DiskOverview.js index 63589bd..d289e55 100644 --- a/src/Hst.Imager.GuiApp/ClientApp/src/components/DiskOverview.js +++ b/src/Hst.Imager.GuiApp/ClientApp/src/components/DiskOverview.js @@ -46,19 +46,6 @@ export default function DiskOverview(props) { } } - const formatPartType = (partType) => { - switch (partType) { - case 'PartitionTable': - return 'Partition Table' - case 'Partition': - return 'Partition' - case 'Unallocated': - return 'Unallocated' - default: - return '' - } - } - const renderLayout = (parts) => { const filteredParts = showUnallocated ? parts : parts.filter(x => x.partType !== 'Unallocated') return ( diff --git a/src/Hst.Imager.GuiApp/ClientApp/src/components/GptDetails.js b/src/Hst.Imager.GuiApp/ClientApp/src/components/GptDetails.js index 5c67a7b..272420d 100644 --- a/src/Hst.Imager.GuiApp/ClientApp/src/components/GptDetails.js +++ b/src/Hst.Imager.GuiApp/ClientApp/src/components/GptDetails.js @@ -1,4 +1,4 @@ -import {formatBytes} from "../utils/Format"; +import {formatBytes} from "../utils/Format"; import {get} from "lodash"; export const createGuidPartitionTableParts = ({ media, humanReadable = true }) => { diff --git a/src/Hst.Imager.GuiApp/ClientApp/src/components/Part.js b/src/Hst.Imager.GuiApp/ClientApp/src/components/Part.js index 50e39d1..a0beaef 100644 --- a/src/Hst.Imager.GuiApp/ClientApp/src/components/Part.js +++ b/src/Hst.Imager.GuiApp/ClientApp/src/components/Part.js @@ -1,4 +1,4 @@ -import React from 'react' +import React from 'react' import {get} from "lodash"; import {TableHead} from "@mui/material"; import Paper from "@mui/material/Paper";