From 0fadf4a8b8be4ec02194900028b375ae466dd7a1 Mon Sep 17 00:00:00 2001 From: ItsRiprod Date: Sat, 13 Jul 2024 03:31:03 -0400 Subject: [PATCH] *Minor bugfix so the installer can be built --- DeskThingServer/src/renderer/src/components/ErrorBoundary.tsx | 2 +- DeskThingServer/src/renderer/src/components/FileHandler.tsx | 2 +- DeskThingServer/src/renderer/src/components/LogDisplay.tsx | 2 +- .../src/renderer/src/components/Overlays/ToastContainer.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DeskThingServer/src/renderer/src/components/ErrorBoundary.tsx b/DeskThingServer/src/renderer/src/components/ErrorBoundary.tsx index e21656e..79e296d 100644 --- a/DeskThingServer/src/renderer/src/components/ErrorBoundary.tsx +++ b/DeskThingServer/src/renderer/src/components/ErrorBoundary.tsx @@ -1,6 +1,6 @@ // src/components/ErrorBoundary.tsx -import React, { Component, ReactNode, ErrorInfo } from 'react' +import { Component, ReactNode, ErrorInfo } from 'react' import Loading from './Loading' interface ErrorBoundaryProps { diff --git a/DeskThingServer/src/renderer/src/components/FileHandler.tsx b/DeskThingServer/src/renderer/src/components/FileHandler.tsx index 24a5fbd..19bf91e 100644 --- a/DeskThingServer/src/renderer/src/components/FileHandler.tsx +++ b/DeskThingServer/src/renderer/src/components/FileHandler.tsx @@ -1,5 +1,5 @@ import { DragEvent, useState } from 'react' -import { IconLoading, IconLogoGearLoading, IconUpload } from './icons' +import { IconLogoGearLoading, IconUpload } from './icons' interface returnData { appId: string diff --git a/DeskThingServer/src/renderer/src/components/LogDisplay.tsx b/DeskThingServer/src/renderer/src/components/LogDisplay.tsx index c6e3198..9e1b8d1 100644 --- a/DeskThingServer/src/renderer/src/components/LogDisplay.tsx +++ b/DeskThingServer/src/renderer/src/components/LogDisplay.tsx @@ -1,6 +1,6 @@ import { useEffect, useState, useRef } from 'react' import logStore, { log } from '../store/logStore' -import { IconLogo, IconLogoGearLoading, IconLogoLoading } from './icons' +import { IconLogoLoading } from './icons' const LogDisplay = (): JSX.Element => { const [logs, setLogs] = useState([]) diff --git a/DeskThingServer/src/renderer/src/components/Overlays/ToastContainer.tsx b/DeskThingServer/src/renderer/src/components/Overlays/ToastContainer.tsx index eef0cad..052394a 100644 --- a/DeskThingServer/src/renderer/src/components/Overlays/ToastContainer.tsx +++ b/DeskThingServer/src/renderer/src/components/Overlays/ToastContainer.tsx @@ -30,7 +30,7 @@ const ToastContainer: React.FC = () => { } }, []) - const removeToast = (id: number): void => { + const removeToast = (id: string): void => { setToasts((prevToasts) => prevToasts.filter((toast) => toast.id !== id)) }