Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Dec 13, 2023
1 parent 0fd75af commit b6af032
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions code/ui/blocks/src/components/ColorPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ function renderSwatchSpecimen(colors: Colors) {
const swatchElements = [];
const labelElements = [];

// eslint-disable-next-line no-restricted-syntax, guard-for-in
for (const colorKey in colors) {
const colorValue = colors[colorKey];
swatchElements.push(renderSwatch(colorValue, swatchElements.length));
Expand All @@ -176,12 +177,8 @@ function renderSwatchSpecimen(colors: Colors) {

return (
<SwatchSpecimen>
<SwatchColors>
{swatchElements}
</SwatchColors>
<SwatchLabels>
{labelElements}
</SwatchLabels>
<SwatchColors>{swatchElements}</SwatchColors>
<SwatchLabels>{labelElements}</SwatchLabels>
</SwatchSpecimen>
);
}
Expand Down

0 comments on commit b6af032

Please sign in to comment.