weekdays parsed from moment / localization added

This commit is contained in:
Vladimir Khvan 2023-02-05 15:46:07 +05:00
parent 175f7f542e
commit 248e86ca3a

View File

@ -1,6 +1,7 @@
import { Weekday } from "../styled-components";
import moment from "moment";
export const getWeekdayElements = () => {
const weekdays = ["Mo", "Tu", "We", "Th", "Fr", "Sa", "Su"];
const weekdays = moment.weekdaysMin(true);
return weekdays.map((day) => <Weekday key={day}>{day}</Weekday>);
};