-
Notifications
You must be signed in to change notification settings - Fork 26
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
Conversation
16af794
to
7366966
Compare
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.
🥇 Thanks for adding it, looks sharp
src/components/notifications/static/__snapshots__/static.spec.js.snap
Outdated
Show resolved
Hide resolved
7366966
to
3401951
Compare
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.
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. | |
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.
@mariabarrena Can we include some guidelines (Dos & Don'ts) here on when to use ContentNotification
s over SideNotification
s ? What's your take on it? :)
else if (this.props.type === 'info') InfoIcon; | ||
else if (this.props.type === 'warning') WarningIcon; | ||
else SuccessIcon; | ||
}; |
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.
💯
…ificaiton; remove dumb tests; fix storybook story;
3401951
to
db74842
Compare
Summary
Add in-place notification panel component.