Skip to content

Commit 866817a

Browse files
committed
New branch with issue fix
1 parent 6287460 commit 866817a

File tree

4 files changed

+33
-27
lines changed

4 files changed

+33
-27
lines changed

__tests__/shared/components/challenge-listing/Filters/__snapshots__/DateRangePicker.jsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ exports[`Matches shallow shapshot 1`] = `
6767
"upArrowDownArrow": "up and down arrow keys",
6868
}
6969
}
70-
readOnly={false}
70+
readOnly={true}
7171
renderCalendarInfo={null}
7272
renderDay={null}
7373
renderMonth={null}

__tests__/shared/components/challenge-listing/Filters/__snapshots__/FiltersPanel.jsx.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ exports[`Matches shallow shapshot 1`] = `
127127
id="date-range-picker"
128128
numberOfMonths={1}
129129
onDatesChange={[Function]}
130+
readOnly={true}
130131
startDate={undefined}
131132
/>
132133
</div>
@@ -143,6 +144,7 @@ exports[`Matches shallow shapshot 1`] = `
143144
id="date-range-picker"
144145
numberOfMonths={2}
145146
onDatesChange={[Function]}
147+
readOnly={true}
146148
startDate={undefined}
147149
/>
148150
</div>
@@ -274,6 +276,7 @@ exports[`Matches shallow shapshot 2`] = `
274276
id="date-range-picker"
275277
numberOfMonths={1}
276278
onDatesChange={[Function]}
279+
readOnly={true}
277280
startDate={undefined}
278281
/>
279282
</div>
@@ -290,6 +293,7 @@ exports[`Matches shallow shapshot 2`] = `
290293
id="date-range-picker"
291294
numberOfMonths={2}
292295
onDatesChange={[Function]}
296+
readOnly={true}
293297
startDate={undefined}
294298
/>
295299
</div>

package-lock.json

Lines changed: 26 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ class DateRangePicker extends React.Component {
3737
endDate={this.props.endDate}
3838
anchorDirection={'right'}
3939
displayFormat={'MMM DD, YYYY'}
40+
readOnly={this.props.readOnly}
4041
/>
4142
);
4243
}
4344
}
4445

4546
DateRangePicker.defaultProps = {
4647
onDatesChange: () => true,
48+
readOnly: true,
4749
};
4850

4951
DateRangePicker.propTypes = {

0 commit comments

Comments
 (0)