Skip to content

Commit

Permalink
fix: removed unused props
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-krakowski committed Jul 8, 2021
1 parent 8f2e209 commit a1d0785
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/components/src/blocks/ColorPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ interface ColorProps {
isTransparent?: boolean;
}

function renderSwatch(color: string, index: number, isTransparent: boolean) {
function renderSwatch(color: string, index: number) {
return <Swatch key={`${color}-${index}`} title={color} background={color} />;
}

Expand All @@ -165,7 +165,7 @@ function renderSwatchSpecimen(colors: Colors, isTransparent: boolean) {
return (
<SwatchSpecimen>
<SwatchColors isTransparent={isTransparent}>
{colors.map((color, index) => renderSwatch(color, index, isTransparent))}
{colors.map((color, index) => renderSwatch(color, index))}
</SwatchColors>
<SwatchLabels>{colors.map((color, index) => renderSwatchLabel(color, index))}</SwatchLabels>
</SwatchSpecimen>
Expand All @@ -174,7 +174,7 @@ function renderSwatchSpecimen(colors: Colors, isTransparent: boolean) {
return (
<SwatchSpecimen>
<SwatchColors isTransparent={isTransparent}>
{Object.values(colors).map((color, index) => renderSwatch(color, index, isTransparent))}
{Object.values(colors).map((color, index) => renderSwatch(color, index))}
</SwatchColors>
<SwatchLabels>
{Object.keys(colors).map((color, index) => renderSwatchLabel(color, index, colors[color]))}
Expand Down

0 comments on commit a1d0785

Please sign in to comment.