mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 23:10:20 +08:00
fix: remove outdated toast comment and cleanup code
The toast component now supports programmatic closing, making the TODO comment obsolete. Clean up the code by removing the unnecessary comment.
This commit is contained in:
parent
a29b0ef9df
commit
cfee61836f
@ -83,7 +83,6 @@ export async function checkDataLimit() {
|
|||||||
}
|
}
|
||||||
currentInterval = setInterval(check, CHECK_INTERVAL_WARNING)
|
currentInterval = setInterval(check, CHECK_INTERVAL_WARNING)
|
||||||
} else if (!shouldShowWarning && currentToastId) {
|
} else if (!shouldShowWarning && currentToastId) {
|
||||||
// TODO: new toast component cannot be closed programmatically. add a dismiss button in the toast.
|
|
||||||
window.toast.close(currentToastId)
|
window.toast.close(currentToastId)
|
||||||
currentToastId = null
|
currentToastId = null
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user