Blame view

天文台pc/tianwentai-ui/node_modules/react-day-picker/src/contexts/DayPicker/labels/labelDay.ts 263 Bytes
bc518174   王天杨   提交两个项目文件
1
2
3
4
5
6
7
8
9
10
  import { format } from 'date-fns';
  
  import { DayLabel } from 'types/Labels';
  
  /**
   * The default ARIA label for the day button.
   */
  export const labelDay: DayLabel = (day, activeModifiers, options): string => {
    return format(day, 'do MMMM (EEEE)', options);
  };