* Open a notification both in antd and molecule in bottomRight with danger icon
({ key, message }: { key: string; message: string })
| 66 | * Open a notification both in antd and molecule in bottomRight with danger icon |
| 67 | */ |
| 68 | error({ key, message }: { key: string; message: string }) { |
| 69 | this.openWithMolecule({ |
| 70 | key, |
| 71 | message: ( |
| 72 | <> |
| 73 | <CloseCircleOutlined |
| 74 | style={{ |
| 75 | color: 'var(--editorError-foreground)', |
| 76 | marginRight: 5, |
| 77 | }} |
| 78 | /> |
| 79 | <span id={key} title={message}> |
| 80 | {message} |
| 81 | </span> |
| 82 | </> |
| 83 | ), |
| 84 | }); |
| 85 | } |
| 86 | |
| 87 | success({ key, message }: { key: string; message: string }) { |
| 88 | this.openWithMolecule({ |