Skip to content

Commit 3a6e732

Browse files
lint
1 parent 29dad6c commit 3a6e732

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

components/Dropdown/Dropdown.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react';
22
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
33
import {
4-
HamburgerMenuIcon,
5-
DotFilledIcon,
64
CheckIcon,
75
ChevronRightIcon,
6+
DotFilledIcon,
7+
HamburgerMenuIcon,
88
} from '@radix-ui/react-icons';
99
import './styles.css';
1010
export interface DropdownProps {

components/Map/Map.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ const Tooltip: React.FC<{ dataService: DataService }> = ({ dataService }) => {
4545
const data = datasets.map((d) => dataService.data[d]?.[id]).filter(Boolean)
4646

4747
return (
48-
<div style={{ background: "white", position: "fixed", left: x, top: y, padding:'1rem', zIndex:1001 }}>
48+
<div style={{ background: "white", position: "fixed", left: x, top: y, padding: "1rem", zIndex: 1001 }}>
4949
{data.map((d) =>
50-
Object.entries(d!).map(([k, v]) => {
50+
Object.entries(d!).map(([k, v], i) => {
5151
return (
52-
<p>
52+
<p key={i}>
5353
{k}: {v}
5454
</p>
5555
)
@@ -131,7 +131,7 @@ export const Map = () => {
131131
<div className="ColorLegend">
132132
<h3>{currentColumnSpec?.name}</h3>
133133
{!!(colors.length && breaks.length) &&
134-
colors.map((_, i) => <BreakText colors={colors} breaks={breaks} index={i} />)}
134+
colors.map((_, i) => <BreakText key={i} colors={colors} breaks={breaks} index={i} />)}
135135
<p style={{ maxWidth: "35ch", fontSize: "0.75rem" }}>
136136
<i>
137137
Data source InfoGroup Refernce USA. Concentration index (HHI) includes grocery, superstore, and dollar
@@ -149,8 +149,8 @@ export const Map = () => {
149149
onValueChange={handleSetColumn}
150150
>
151151
<>
152-
{currentDataSpec?.columns.map((c) => (
153-
<Select.Item className="SelectItem" value={c.column as string}>
152+
{currentDataSpec?.columns.map((c, i) => (
153+
<Select.Item className="SelectItem" value={c.column as string} key={i}>
154154
<Select.ItemText>{c.name}</Select.ItemText>
155155
<Select.ItemIndicator className="SelectItemIndicator">
156156
<CheckIcon />

0 commit comments

Comments
 (0)