From e9bc8bf94ac74d8c8aa6c9bcfcbe034556c9e194 Mon Sep 17 00:00:00 2001 From: udara Date: Sun, 12 Nov 2023 00:27:30 -0500 Subject: [PATCH] Add success and attached toast types --- src/renderer/pages/Pile/Toasts/Toast/Toast.module.scss | 8 ++++++++ src/renderer/pages/Pile/Toasts/Toast/index.jsx | 5 +++++ src/renderer/pages/Pile/Toasts/index.jsx | 4 +--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/renderer/pages/Pile/Toasts/Toast/Toast.module.scss b/src/renderer/pages/Pile/Toasts/Toast/Toast.module.scss index 0235cc4..cef0295 100644 --- a/src/renderer/pages/Pile/Toasts/Toast/Toast.module.scss +++ b/src/renderer/pages/Pile/Toasts/Toast/Toast.module.scss @@ -21,4 +21,12 @@ &.thinking { color: var(--active); } + + &.success { + color: var(--base); + } + + &.attached { + color: var(--base); + } } \ No newline at end of file diff --git a/src/renderer/pages/Pile/Toasts/Toast/index.jsx b/src/renderer/pages/Pile/Toasts/Toast/index.jsx index 8760bf2..a6b4b07 100644 --- a/src/renderer/pages/Pile/Toasts/Toast/index.jsx +++ b/src/renderer/pages/Pile/Toasts/Toast/index.jsx @@ -5,6 +5,7 @@ import Logo from 'renderer/pages/Home/logo'; import Thinking from './Loaders/Thinking'; import Waiting from './Loaders/Waiting'; import Info from './Loaders/Info'; +import { PaperclipIcon, SmileIcon } from 'renderer/icons'; export default function Toast({ notification }) { const renderIcon = (type) => { @@ -13,6 +14,10 @@ export default function Toast({ notification }) { return ; case 'waiting': return ; + case 'success': + return null; + case 'attached': + return ; default: return ; } diff --git a/src/renderer/pages/Pile/Toasts/index.jsx b/src/renderer/pages/Pile/Toasts/index.jsx index 5a0a4c4..119ec2f 100644 --- a/src/renderer/pages/Pile/Toasts/index.jsx +++ b/src/renderer/pages/Pile/Toasts/index.jsx @@ -19,9 +19,7 @@ export default function Toasts() { return (
- - {renderNotifications()} - + {renderNotifications()}
); }