From d031da5f0ef28f741a2adae05e0bd79ec81eabe1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Mon, 4 Sep 2023 09:55:34 +0200 Subject: [PATCH] pretty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fredrik Adelöw --- .../DryRunResults/DryRunResultsList.tsx | 26 ++++++++++++------- .../scaffolder/src/lib/download/helpers.ts | 1 - 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/plugins/scaffolder/src/components/TemplateEditorPage/DryRunResults/DryRunResultsList.tsx b/plugins/scaffolder/src/components/TemplateEditorPage/DryRunResults/DryRunResultsList.tsx index 11031fc50c..df6e8ef5f2 100644 --- a/plugins/scaffolder/src/components/TemplateEditorPage/DryRunResults/DryRunResultsList.tsx +++ b/plugins/scaffolder/src/components/TemplateEditorPage/DryRunResults/DryRunResultsList.tsx @@ -27,7 +27,7 @@ import CheckIcon from '@material-ui/icons/Check'; import DeleteIcon from '@material-ui/icons/Delete'; import DownloadIcon from '@material-ui/icons/GetApp'; import React from 'react'; -import { DryRunResult, useDryRun } from '../DryRunContext'; +import { useDryRun } from '../DryRunContext'; import { downloadBlob } from '../../../lib/download'; const useStyles = makeStyles((theme: BackstageTheme) => ({ @@ -59,10 +59,13 @@ export function DryRunResultsList() { async function downloadResult() { isLoading = true; - await downloadDirectoryContents(result.directoryContents, `dry-run-result-${result.id}.zip`) + await downloadDirectoryContents( + result.directoryContents, + `dry-run-result-${result.id}.zip`, + ); isLoading = false; } - + return (