Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
firejune committed Nov 5, 2023
1 parent db870fd commit 7ada718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/[username]/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const Chart = ({ data = [], scheme }: ChartProps) => {
<g key={`week-${x}`} transform={`translate(${(boxSize + boxMargin) * x}, 0)`}>
{week.map((day, y) => (
<rect
key={`rect-${y}`}
key={`day-${y}`}
width={boxSize}
height={boxSize}
y={(boxSize + boxMargin) * y}
Expand Down Expand Up @@ -87,7 +87,7 @@ const Chart = ({ data = [], scheme }: ChartProps) => {
<g transform="translate(-9, 9)">
{data[0].map((day, y) => (
<text
key={`day-${y}`}
key={`weekday-${y}`}
dy={y * textHeight}
fill="var(--color-text-default)"
style={y % 2 ? { fontSize } : { display: 'none' }}
Expand Down

0 comments on commit 7ada718

Please sign in to comment.