-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removed css-modules dependency. #26
base: master
Are you sure you want to change the base?
Conversation
to same as styles prop of Calendar component.
Thank you @mberneti! Looks very good. There are just a few things that I'll point out as "code review". |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mberneti Can you fix these?
src/components/DefaultStyles.js
Outdated
@@ -0,0 +1,13 @@ | |||
export const defaultStyles = { | |||
calendarContainer: 'calendarContainer', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's an extra indentation here.
src/components/DatePicker.js
Outdated
@@ -20,13 +21,13 @@ export default class DatePicker extends Component { | |||
inputFormat: PropTypes.string, | |||
removable: PropTypes.bool, | |||
timePickerComponent: PropTypes.func, | |||
calendarStyles: PropTypes.object, | |||
styles: PropTypes.object, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a breaking change, though I personally prefer styles
over calendarStyles
too. This is what @ilxanlar had chosen. I'm wondering if it's gonna break the Evand's web app after update.
src/components/DatePicker.js
Outdated
calendarContainerProps: PropTypes.object | ||
}; | ||
|
||
static defaultProps = { | ||
inputFormat: 'jYYYY/jM/jD', | ||
calendarStyles: require('../styles/basic.css'), | ||
styles: { ...defaultStyles, ...require('../styles/basic.css') }, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That require('../styles/basic.css')
seems to be redundant as it gets overridden by defaultStyles
anyways. We can stick with defaultStyles
.
@mohebifar I think i fixed those couple issues in this commits. |
No description provided.