Basically a way to short circuit the button onclick functions. Implemented to allow the notification popup to close on pressing a button without screwing up the existing button functions. Theres an issue where submitting multiple notifications without changing the text stop the popup from appearing (due to the props not actually changing, meaning an update isn't triggered), but I'd like opinions on the implementation before trying to fix it.
Basically a way to short circuit the button onclick functions. Implemented to allow the notification popup to close on pressing a button without screwing up the existing button functions. Theres an issue where submitting multiple notifications without changing the text stop the popup from appearing (due to the props not actually changing, meaning an update isn't triggered), but I'd like opinions on the implementation before trying to fix it.