diff options
Diffstat (limited to 'packages/anastasis-webui/src/components/Notifications.tsx')
-rw-r--r-- | packages/anastasis-webui/src/components/Notifications.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/anastasis-webui/src/components/Notifications.tsx b/packages/anastasis-webui/src/components/Notifications.tsx index c916020d7..097ebb4de 100644 --- a/packages/anastasis-webui/src/components/Notifications.tsx +++ b/packages/anastasis-webui/src/components/Notifications.tsx @@ -46,10 +46,10 @@ function messageStyle(type: MessageType): string { export function Notifications({ notifications, removeNotification }: Props): VNode { return <div class="block"> - {notifications.map((n,i) => <article key={i} class={messageStyle(n.type)}> + {notifications.map((n, i) => <article key={i} class={messageStyle(n.type)}> <div class="message-header"> <p>{n.message}</p> - <button class="delete" onClick={() => removeNotification && removeNotification(n)} /> + {removeNotification && <button class="delete" onClick={() => removeNotification && removeNotification(n)} />} </div> {n.description && <div class="message-body"> {n.description} |