From a1d0785937aa528c3037980c997025df4a1805cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Krakowski?= Date: Thu, 8 Jul 2021 19:13:01 +0200 Subject: [PATCH] fix: removed unused props --- lib/components/src/blocks/ColorPalette.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/components/src/blocks/ColorPalette.tsx b/lib/components/src/blocks/ColorPalette.tsx index 3705810d6671..763bff60c0f9 100644 --- a/lib/components/src/blocks/ColorPalette.tsx +++ b/lib/components/src/blocks/ColorPalette.tsx @@ -145,7 +145,7 @@ interface ColorProps { isTransparent?: boolean; } -function renderSwatch(color: string, index: number, isTransparent: boolean) { +function renderSwatch(color: string, index: number) { return ; } @@ -165,7 +165,7 @@ function renderSwatchSpecimen(colors: Colors, isTransparent: boolean) { return ( - {colors.map((color, index) => renderSwatch(color, index, isTransparent))} + {colors.map((color, index) => renderSwatch(color, index))} {colors.map((color, index) => renderSwatchLabel(color, index))} @@ -174,7 +174,7 @@ function renderSwatchSpecimen(colors: Colors, isTransparent: boolean) { return ( - {Object.values(colors).map((color, index) => renderSwatch(color, index, isTransparent))} + {Object.values(colors).map((color, index) => renderSwatch(color, index))} {Object.keys(colors).map((color, index) => renderSwatchLabel(color, index, colors[color]))}