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

Modal component #10

Merged
merged 4 commits into from
Nov 1, 2018
Merged

Modal component #10

merged 4 commits into from
Nov 1, 2018

Conversation

konsumer
Copy link
Contributor

This adds a modal component & docs, that looks like this:

screen shot 2018-10-30 at 12 42 20 pm

@konsumer
Copy link
Contributor Author

konsumer commented Oct 30, 2018

I tried to follow what Notify is doing, but also leave it up to the user what to put inside modal (in this example, I use a card to make a nice material-looking modal.)

};

render() {
const { style = {}, className } = this.props;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you get props as part of the render

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

render({ style = {}, className }) {


Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That makes sense, and I am happy to make the change, but I tried to closely follow the style of Notify. Should I add to the PR?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no its fine.

@thabti
Copy link
Collaborator

thabti commented Oct 31, 2018

Really cool - I will play around with this tonight/tomorrow.

@thabti thabti merged commit 91dfea4 into ajainvivek:master Nov 1, 2018
@thabti
Copy link
Collaborator

thabti commented Nov 1, 2018

@konsumer Thank you for the contribution :)

@thabti
Copy link
Collaborator

thabti commented Nov 1, 2018

@konsumer has been released as part of v0.9.0

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