From 8000c68ae74650e208394a0f30364c8b833fc4df Mon Sep 17 00:00:00 2001 From: JGAntunes Date: Fri, 11 Oct 2024 11:51:27 +0100 Subject: [PATCH] chore: make linter happy --- .../upgrade_service/ConfirmAndDeploy.tsx | 66 +++++++++---------- .../upgrade_service/UpgradeService.tsx | 32 ++++----- 2 files changed, 49 insertions(+), 49 deletions(-) diff --git a/web/src/components/upgrade_service/ConfirmAndDeploy.tsx b/web/src/components/upgrade_service/ConfirmAndDeploy.tsx index 5227251d33..e5615bbfff 100644 --- a/web/src/components/upgrade_service/ConfirmAndDeploy.tsx +++ b/web/src/components/upgrade_service/ConfirmAndDeploy.tsx @@ -26,6 +26,39 @@ interface PreflightResultResponse { showWarn: boolean; } +const BackButton = ({ + slug, + hasPreflight, + isConfigurable, +}: { + slug: string; + hasPreflight: boolean; + isConfigurable: boolean; +}) => { + const navigate = useNavigate(); + + if (hasPreflight) { + return ( + + ); + } + + return ( + + ); +}; + const ConfirmAndDeploy = ({ setCurrentStep, hasPreflight, @@ -352,37 +385,4 @@ const ConfirmAndDeploy = ({ ); }; -const BackButton = ({ - slug, - hasPreflight, - isConfigurable, -}: { - slug: string; - hasPreflight: boolean; - isConfigurable: boolean; -}) => { - const navigate = useNavigate(); - - if (hasPreflight) { - return ( - - ); - } - - return ( - - ); -}; - export default ConfirmAndDeploy; diff --git a/web/src/components/upgrade_service/UpgradeService.tsx b/web/src/components/upgrade_service/UpgradeService.tsx index e9620d36b1..316fce9a2e 100644 --- a/web/src/components/upgrade_service/UpgradeService.tsx +++ b/web/src/components/upgrade_service/UpgradeService.tsx @@ -19,22 +19,6 @@ import { useGetUpgradeInfo } from "./hooks"; // react-query client const queryClient = new QueryClient(); -const UpgradeService = () => { - return ( - - - - - - - - - ); -}; - const UpgradeServiceBody = () => { const Crashz = () => { throw new Error("Crashz!"); @@ -125,4 +109,20 @@ const UpgradeServiceBody = () => { ); }; +const UpgradeService = () => { + return ( + + + + + + + + + ); +}; + export { UpgradeService };