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

feat(notifications/static): add ContentNotification component #232

Merged
merged 3 commits into from
Nov 19, 2018

Conversation

pa3
Copy link
Contributor

@pa3 pa3 commented Nov 14, 2018

Summary

Add in-place notification panel component.

screenshot 2018-11-14 at 16 08 26

Copy link
Contributor

@dferber90 dferber90 left a comment

Choose a reason for hiding this comment

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

🥇 Thanks for adding it, looks sharp

@pa3 pa3 force-pushed the pa3-static-notifications branch from 7366966 to 3401951 Compare November 15, 2018 12:53
@dferber90 dferber90 changed the title feat(notifications/static): add Notifications.Static component feat(notifications/static): add ContentNotification component Nov 16, 2018
Copy link
Contributor

@dferber90 dferber90 left a comment

Choose a reason for hiding this comment

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

Nice 👏

Let's wait for #236 before the merge.

| Props | Type | Required | Values | Default | Description |
| ---------- | -------- | :------: | ------------------------------------- | ------- | ------------------------------------------------- |
| `children` | `node` | - | - | - | Message to be shown inside a notification panel. |
| `type` | `string` | - | `success`, `info`, `warning`, `error` | - | Type of notification, determining its appearance. |
Copy link
Contributor

Choose a reason for hiding this comment

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

@mariabarrena Can we include some guidelines (Dos & Don'ts) here on when to use ContentNotifications over SideNotifications ? What's your take on it? :)

else if (this.props.type === 'info') InfoIcon;
else if (this.props.type === 'warning') WarningIcon;
else SuccessIcon;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

💯

@dferber90 dferber90 force-pushed the pa3-static-notifications branch from 3401951 to db74842 Compare November 16, 2018 10:55
@pa3 pa3 merged commit 46fb887 into master Nov 19, 2018
@pa3 pa3 deleted the pa3-static-notifications branch November 19, 2018 09:57
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.

3 participants