diff options
author | Sebastian <sebasjm@gmail.com> | 2021-11-05 14:56:03 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2021-11-05 14:56:28 -0300 |
commit | a9d2a4654b414a01a53a0d79f1f90a5102564710 (patch) | |
tree | a5dc5c76ea7ffeaec101169699302a40e0c63131 /packages/anastasis-webui/src/components/Notifications.tsx | |
parent | d43ab6af87f2729b37548336d42ffce0ed3c879e (diff) | |
download | wallet-core-a9d2a4654b414a01a53a0d79f1f90a5102564710.tar.xz |
feedback state rendering
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} |