Skip to content

Commit

Permalink
fix(calendar-grid): change key used in week days mapping
Browse files Browse the repository at this point in the history
change the key used to be the week day character plus the index to avoid warnings when diferents
days have the semana character for identification

fix #2041
  • Loading branch information
lafray committed Nov 6, 2024
1 parent 5568a1f commit af78a7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/shoreline/src/components/calendar/calendar-grid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export function CalendarGrid(props: CalendarGridProps) {
<table data-sl-calendar-grid {...gridProps}>
<thead data-sl-calendar-grid-header {...headerProps}>
<tr>
{weekDays.map((day) => (
<th key={day}>{day}</th>
{weekDays.map((day, index) => (
<th key={`${day}=${index}`}>{day}</th>
))}
</tr>
</thead>
Expand Down

0 comments on commit af78a7d

Please sign in to comment.