Skip to content
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

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

mberneti
Copy link

@mberneti mberneti commented Mar 5, 2017

No description provided.

@mohebifar
Copy link
Contributor

Thank you @mberneti! Looks very good. There are just a few things that I'll point out as "code review".

Copy link
Contributor

@mohebifar mohebifar left a 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?

@@ -0,0 +1,13 @@
export const defaultStyles = {
calendarContainer: 'calendarContainer',
Copy link
Contributor

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.

@@ -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,
Copy link
Contributor

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.

calendarContainerProps: PropTypes.object
};

static defaultProps = {
inputFormat: 'jYYYY/jM/jD',
calendarStyles: require('../styles/basic.css'),
styles: { ...defaultStyles, ...require('../styles/basic.css') },
Copy link
Contributor

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.

@mberneti mberneti changed the title removed css-loader dependency. removed css-modules dependency. Mar 7, 2017
@mberneti
Copy link
Author

mberneti commented Mar 7, 2017

@mohebifar I think i fixed those couple issues in this commits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants