Changed tabs => code_tabs. Changed notification signature. Removed old unused code (docs view duplicate)
This commit is contained in:
committed by
fabioberger
parent
ac3a6426e8
commit
db062154d1
@@ -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>
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user