Skip to content

Commit aff2336

Browse files
committed
fix: slight styling detail and use title as key instead of index
1 parent 2af88c1 commit aff2336

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

web/src/pages/Courts/CourtDetails/Stats.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ const Stats = () => {
274274
const coinPrice = !isUndefined(pricesData) ? pricesData[coinIds[coinId!]]?.price : undefined;
275275
return (
276276
<StatDisplay
277-
key={i}
277+
key={title}
278278
{...{ title, color, icon }}
279279
text={data ? getText(data.court) : <StyledSkeleton />}
280280
subtext={calculateSubtextRender(data?.court, getSubtext, coinPrice)}
@@ -301,7 +301,7 @@ const Stats = () => {
301301
{timeframedStats.map(({ title, getText, color, icon }, i) => {
302302
return (
303303
<StatDisplay
304-
key={i}
304+
key={title}
305305
{...{ title, color, icon }}
306306
text={foundCourt ? getText(foundCourt) : <StyledSkeleton />}
307307
/>

web/src/pages/Courts/CourtDetails/index.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ const StyledBreadcrumb = styled(Breadcrumb)`
7979

8080
const Divider = styled.hr`
8181
width: 100%;
82-
display: flex;
8382
border: none;
8483
height: 1px;
8584
background-color: ${({ theme }) => theme.stroke};

0 commit comments

Comments
 (0)