How to use the rc-calendar/es/locale/en_US.monthFormat function in rc-calendar

To help you get started, we’ve selected a few rc-calendar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github cockroachdb / cockroach-gen / pkg / ui / src / components / rangeCalendar / rangeCalendar.tsx View on Github external
import { noop } from "lodash";
import { TimePicker } from "antd";
import { TimePickerProps } from "antd/es/time-picker";
import RcRangeCalendar from "rc-calendar/es/RangeCalendar";
import locale from "rc-calendar/es/locale/en_US";
import "rc-calendar/assets/index.css";
import classNames from "classnames/bind";
import { CaretDown } from "@cockroachlabs/icons";

import { Button } from "src/components";
import styles from "./rangeCalendar.module.styl";
import { DateRangeLabel } from "./dateRangeLabel";

const cx = classNames.bind(styles);

locale.monthFormat = "MMMM";

interface OwnProps {
  timeFormat?: string;
  minTimeRange?: [DurationInputArg1, DurationInputArg2];
  onSubmit?: (range: [Moment, Moment]) => void;
  onCancel?: () => void;
  onInvalidRangeSelect?: (allowedRange: [DurationInputArg1, DurationInputArg2]) => void;
  showBorders?: boolean;
}

interface RcTimePickerProps {
  align: {
    offset: [number, number];
  };
}

rc-calendar

React Calendar

MIT
Latest version published 4 years ago

Package Health Score

62 / 100
Full package analysis