|
|
@ -19,6 +19,7 @@ type Props = {
|
|
|
|
className?: string;
|
|
|
|
className?: string;
|
|
|
|
message?: ?string;
|
|
|
|
message?: ?string;
|
|
|
|
actions?: Array<CallbackAction>;
|
|
|
|
actions?: Array<CallbackAction>;
|
|
|
|
|
|
|
|
isActionInProgress?: boolean;
|
|
|
|
close?: typeof NotificationActions.close,
|
|
|
|
close?: typeof NotificationActions.close,
|
|
|
|
loading?: boolean
|
|
|
|
loading?: boolean
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -122,6 +123,7 @@ const Notification = (props: Props): React$Element<string> => {
|
|
|
|
<NotificationButton
|
|
|
|
<NotificationButton
|
|
|
|
key={action.label}
|
|
|
|
key={action.label}
|
|
|
|
type={props.type}
|
|
|
|
type={props.type}
|
|
|
|
|
|
|
|
isLoading={props.isActionInProgress}
|
|
|
|
onClick={() => { close(); action.callback(); }}
|
|
|
|
onClick={() => { close(); action.callback(); }}
|
|
|
|
>{action.label}
|
|
|
|
>{action.label}
|
|
|
|
</NotificationButton>
|
|
|
|
</NotificationButton>
|
|
|
|