Skip to content

Commit

Permalink
Move locale to DatePicker
Browse files Browse the repository at this point in the history
  • Loading branch information
javivelasco committed May 21, 2017
1 parent fc721bf commit 3ba65df
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import * as React from 'react';
import { range, memoize } from 'ramda';
import { ComponentClass, Component } from 'react';
import getPassThrough, { PassTroughFunction } from '../../utils/getPassThrough';
import getFullDayOfWeek from '../../locale/getFullDayOfWeek';
import getFullMonth from '../../locale/getFullMonth';
import getFullDayOfWeek from './locale/getFullDayOfWeek';
import getFullMonth from './locale/getFullMonth';
import getMonthMatrix from './getMonthMatrix';
import getMonthAffected from './getMonthAffected';
import { PickerDate, DateChecker } from './types';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import getLocale from './dateLocales';
import hasOwnProperty from '../utils/hasOwnProperty';
import hasOwnProperty from '../../../utils/hasOwnProperty';

export default function getFullDayOfWeek(weekDay: number, locale: string | object = 'en'): string {
const localeObject = getLocale(locale);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import getLocale, { Locales, Locale } from './dateLocales';
import hasOwnProperty from '../utils/hasOwnProperty';
import hasOwnProperty from '../../../utils/hasOwnProperty';

export default function getFullMonth(date: Date, locale: keyof Locales | Locale = 'en'): string {
const month = date.getMonth();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import getLocale, { Locales, Locale } from './dateLocales';
import hasOwnProperty from '../utils/hasOwnProperty';
import hasOwnProperty from '../../../utils/hasOwnProperty';

export default function getShortMonth(date: Date, locale: keyof Locales | Locale = 'en'): string {
const month = date.getMonth();
Expand Down

0 comments on commit 3ba65df

Please sign in to comment.