Skip to content

Commit 8688c2f

Browse files
Update DateRangePicker.jsx
1 parent 3f434e0 commit 8688c2f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/shared/components/challenge-listing/Filters/DateRangePicker.jsx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import 'react-dates/initialize';
1717
import { DateRangePicker as WrappedDateRangePicker } from 'react-dates';
1818
import 'react-dates/lib/css/_datepicker.css';
1919
import './_fix_DateInput__input.css';
20+
import defaultPhrases from 'react-dates/lib/defaultPhrases';
2021

2122
class DateRangePicker extends React.Component {
2223
constructor(props) {
@@ -37,6 +38,11 @@ class DateRangePicker extends React.Component {
3738
const {
3839
focusedInput,
3940
} = this.state;
41+
const phraseOverrides = {
42+
...defaultPhrases,
43+
jumpToPrevMonth: 'Previous Month',
44+
jumpToNextMonth: 'Next Month',
45+
};
4046
return (
4147
<WrappedDateRangePicker
4248
hideKeyboardShortcutsPanel
@@ -52,6 +58,7 @@ class DateRangePicker extends React.Component {
5258
anchorDirection="right"
5359
displayFormat="MMM DD, YYYY"
5460
readOnly={readOnly}
61+
phrases={phraseOverrides}
5562
/>
5663
);
5764
}

0 commit comments

Comments
 (0)