Skip to content

Commit

Permalink
fix: added the missing property
Browse files Browse the repository at this point in the history
  • Loading branch information
bart-krakowski committed Jul 5, 2021
1 parent 16442f0 commit 310f9e6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/components/src/blocks/ColorPalette.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -145,15 +145,7 @@ interface ColorProps {
}

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

function renderSwatchLabel(color: string, index: number, colorDescription?: string) {
Expand Down

0 comments on commit 310f9e6

Please sign in to comment.