|
|
@@ -3,7 +3,12 @@ import React, { ReactElement, useState } from 'react'
|
|
|
import { useTranslation } from 'react-i18next'
|
|
|
import MaterialIcon from './material-icon'
|
|
|
|
|
|
-export type NotificationType = 'info' | 'success' | 'warning' | 'error'
|
|
|
+export type NotificationType =
|
|
|
+ | 'info'
|
|
|
+ | 'success'
|
|
|
+ | 'warning'
|
|
|
+ | 'error'
|
|
|
+ | 'offer'
|
|
|
|
|
|
type NotificationProps = {
|
|
|
action?: React.ReactElement
|
|
|
@@ -35,8 +40,9 @@ function NotificationIcon({
|
|
|
icon = <MaterialIcon type="warning" />
|
|
|
} else if (notificationType === 'error') {
|
|
|
icon = <MaterialIcon type="error" />
|
|
|
+ } else if (notificationType === 'offer') {
|
|
|
+ icon = <MaterialIcon type="campaign" />
|
|
|
}
|
|
|
-
|
|
|
return <div className="notification-icon">{icon}</div>
|
|
|
}
|
|
|
|