Skip to content

Commit

Permalink
lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejoYarce committed Jan 11, 2025
1 parent ab29b2d commit 3b6d4b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ function App() {
- [Slider](https://github.com/wri/wri-design-systems/tree/main/src/components/Slider)

### Tags

- [Tag](https://github.com/wri/wri-design-systems/tree/main/src/components/Tag)

### Inputs
Expand Down Expand Up @@ -138,7 +139,6 @@ function App() {
- [Legend Item](https://github.com/wri/wri-design-systems/tree/main/src/components/Legend/LegendItem)
- [Legend Panel](https://github.com/wri/wri-design-systems/tree/main/src/components/Legend/LegendPanel)


## Building the lib

```
Expand Down
7 changes: 1 addition & 6 deletions src/components/Legend/ScaleBar/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,7 @@ const generateGradient = (colors: string[]) => {
return `linear-gradient(to right, ${colors.map((color, index) => `${color} ${percentages[index]}`).join(', ')})`
}

const ScaleBar = ({
colors,
values,
subLabels,
isGradient,
}: ScaleBarProps) => (
const ScaleBar = ({ colors, values, subLabels, isGradient }: ScaleBarProps) => (
<ScaleBarContainer>
{isGradient ? (
<ScaleBarGradientBar gradient={generateGradient(colors)} />
Expand Down

0 comments on commit 3b6d4b7

Please sign in to comment.