Skip to content

Commit 674de83

Browse files
committed
fix(Calendar): week words error
1 parent 27e76b4 commit 674de83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/calendar/table/date-table-head.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ class DateTableHead extends PureComponent {
55
render() {
66
const { prefix, momentLocale } = this.props;
77
const firstDayOfWeek = momentLocale.firstDayOfWeek();
8-
const weekdaysMin = momentLocale.weekdaysMin();
8+
const weekdaysShort = momentLocale.weekdaysShort();
99

1010
const elements = [];
1111
for (let i = 0; i < DAYS_OF_WEEK; i++) {
1212
const index = (firstDayOfWeek + i) % DAYS_OF_WEEK;
1313
elements.push(
1414
<th key={i} className={`${prefix}calendar-th`} role="cell">
15-
{weekdaysMin[index]}
15+
{weekdaysShort[index]}
1616
</th>
1717
);
1818
}

0 commit comments

Comments
 (0)