From d8b70aa28c673598dd05633e2f16137299db772c Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Thu, 28 Nov 2024 17:11:30 -0800 Subject: [PATCH] fix(logs-react): fix eslint errors in cardList and LogChips - Add key props to CardListItem components in cardList\n- Remove unnecessary boolean type annotation in LogChips --- packages/logs-react/src/components/cardList/cardList.tsx | 4 ++-- packages/logs-react/src/components/logChips/LogChips.tsx | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/packages/logs-react/src/components/cardList/cardList.tsx b/packages/logs-react/src/components/cardList/cardList.tsx index c6e8523..9a25878 100644 --- a/packages/logs-react/src/components/cardList/cardList.tsx +++ b/packages/logs-react/src/components/cardList/cardList.tsx @@ -17,9 +17,9 @@ const CardList: React.FC = (props) => { <> {props.logs.map((call, i) => { if (props.logs.length - 1 === i) { - return ; + return ; } else { - return ; + return ; } })} diff --git a/packages/logs-react/src/components/logChips/LogChips.tsx b/packages/logs-react/src/components/logChips/LogChips.tsx index 57477e5..4639340 100644 --- a/packages/logs-react/src/components/logChips/LogChips.tsx +++ b/packages/logs-react/src/components/logChips/LogChips.tsx @@ -1,4 +1,3 @@ - import React from "react"; import { IJSONRPCLog } from "../logsReact/logsReact"; import {Chip} from "@material-ui/core"; @@ -8,7 +7,7 @@ interface IProps { log: IJSONRPCLog; } -const getChipColorForLog = (log: IJSONRPCLog, theme: Theme, isNotification: boolean = false): any => { +const getChipColorForLog = (log: IJSONRPCLog, theme: Theme, isNotification = false): any => { const paletteType = theme.palette.type; const styles: any = { backgroundColor: theme.palette.success[paletteType],