diff --git a/src/components/TableMatrixView.tsx b/src/components/TableMatrixView.tsx index 8bdebf2..557e2b5 100644 --- a/src/components/TableMatrixView.tsx +++ b/src/components/TableMatrixView.tsx @@ -22,7 +22,7 @@ const TableMatrixView: React.FunctionComponent = ({ className, matrix, ce )} {matrix.map((row, i) => ( - {row.map((v, j) => cell(v, i + j))} + {row.map((v, j) => cell(v, i * matrix[i].length + j))} ))} diff --git a/test/__snapshots__/CalendarContainer.test.tsx.snap b/test/__snapshots__/CalendarContainer.test.tsx.snap index 51c9b83..4daf2a8 100644 --- a/test/__snapshots__/CalendarContainer.test.tsx.snap +++ b/test/__snapshots__/CalendarContainer.test.tsx.snap @@ -301,7 +301,7 @@ exports[` prop: locale should locale prop correctly 1`] = ` > prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` > prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` > prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` > prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` > prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: locale should locale prop correctly 1`] = ` prop: selected should render correctly 1`] = ` > prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` > prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` > prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` > prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` > prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: selected should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` > prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` > prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` > prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` > prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` > prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop: startDay, endDay should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` > prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` > prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` > prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` > prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` > prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` prop:customClass, customText should render correctly 1`] = ` props matrix correctly 1`] = ` key="1" > value value value @@ -66,17 +66,17 @@ exports[` props matrix correctly 1`] = ` key="2" > value value value @@ -132,17 +132,17 @@ exports[` render with no props 1`] = ` key="1" > value value value @@ -151,17 +151,17 @@ exports[` render with no props 1`] = ` key="2" > value value value