diff options
author | Nuckyz <61953774+Nuckyz@users.noreply.github.com> | 2023-03-04 14:49:15 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 18:49:15 +0100 |
commit | e219aaa062563202c6b723ada06f115437ab35a7 (patch) | |
tree | 66baa307976f8472360d8e69f5d1ec54e51371c2 /src/api/Notifications/Notifications.tsx | |
parent | cab72e1be627fb7cb06725d0a3e262e214de170f (diff) | |
download | Vencord-e219aaa062563202c6b723ada06f115437ab35a7.tar.gz Vencord-e219aaa062563202c6b723ada06f115437ab35a7.tar.bz2 Vencord-e219aaa062563202c6b723ada06f115437ab35a7.zip |
Notifications: Permanent option and close button (#563)
Co-authored-by: Ven <vendicated@riseup.net>
Diffstat (limited to 'src/api/Notifications/Notifications.tsx')
-rw-r--r-- | src/api/Notifications/Notifications.tsx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/Notifications/Notifications.tsx b/src/api/Notifications/Notifications.tsx index 46472ad..a6b2ccd 100644 --- a/src/api/Notifications/Notifications.tsx +++ b/src/api/Notifications/Notifications.tsx @@ -54,6 +54,8 @@ export interface NotificationData { onClick?(): void; onClose?(): void; color?: string; + /** Whether this notification should not have a timeout */ + permanent?: boolean; } function _showNotification(notification: NotificationData, id: number) { |