Changed tabs => code_tabs. Changed notification signature. Removed old unused code (docs view duplicate)

This commit is contained in:
Piotr Janosz
2019-07-09 15:41:49 +02:00
committed by fabioberger
parent ac3a6426e8
commit db062154d1
6 changed files with 14 additions and 154 deletions

View File

@@ -8,13 +8,13 @@ interface INotificationWrapperProps {
}
interface INotificationProps extends INotificationWrapperProps {
text: string;
children: string;
}
export const Notification: React.FC<INotificationProps> = ({ type = 'standard', text }) => (
export const Notification: React.FC<INotificationProps> = ({ children, type = 'standard' }) => (
<NotificationWrapper type={type}>
{themeSettings[type].icon}
<NotificationText>{text}</NotificationText>
<NotificationText>{children}</NotificationText>
</NotificationWrapper>
);