From 595698414e2d024061a9710ccac18c0339029adb Mon Sep 17 00:00:00 2001 From: blam Date: Tue, 5 Jan 2021 16:34:09 +0100 Subject: [PATCH] chore: fixing code review comments. settled for a simpler button instead in an actions wrapper --- .../src/components/JobStage/JobStage.tsx | 20 +++++++++---------- .../src/components/JobStage/LogModal.tsx | 10 +++++++++- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/plugins/scaffolder/src/components/JobStage/JobStage.tsx b/plugins/scaffolder/src/components/JobStage/JobStage.tsx index 398595a274..53ceffc87d 100644 --- a/plugins/scaffolder/src/components/JobStage/JobStage.tsx +++ b/plugins/scaffolder/src/components/JobStage/JobStage.tsx @@ -1,5 +1,3 @@ -/* eslint-disable jsx-a11y/click-events-have-key-events */ -/* eslint-disable jsx-a11y/no-static-element-interactions */ /* * Copyright 2020 Spotify AB * @@ -20,10 +18,12 @@ import { Accordion, AccordionDetails, AccordionSummary, + AccordionActions, Box, CircularProgress, LinearProgress, Typography, + Button, } from '@material-ui/core'; import { makeStyles } from '@material-ui/core/styles'; import ExpandMoreIcon from '@material-ui/icons/ExpandMore'; @@ -153,19 +153,17 @@ export const JobStage = ({ endedAt, startedAt, name, log, status }: Props) => { onClose={toggleLogsFullScreen} log={log} /> -
- +
+
)} + + + ); }; diff --git a/plugins/scaffolder/src/components/JobStage/LogModal.tsx b/plugins/scaffolder/src/components/JobStage/LogModal.tsx index 6c6c5b4ffd..8c2d757ade 100644 --- a/plugins/scaffolder/src/components/JobStage/LogModal.tsx +++ b/plugins/scaffolder/src/components/JobStage/LogModal.tsx @@ -46,7 +46,15 @@ const useStyles = makeStyles(theme => ({ }, })); -export const LogModal: React.FC = ({ log, open = false, onClose }) => { +export const LogModal = ({ + log, + open = false, + onClose, +}: { + log: string[]; + open: boolean; + onClose: () => void; +}) => { const classes = useStyles(); return (