There is a bug in the error toast notifications that is currently preventing #140 from being replicated. The recent changes to the LoaderButton component have unexpectedly broken the error toast notification.
Steps to Reproduce
Go to profile
Click the pencil icon next to your name
Attempt to upload a new photo
Observe the console errors - these are coming from the errorToast component. (Removing the buttons from the component resolves the issue.)
Expected behavior
Error notification about "missing region" should appear
Actual behavior
No notification appears and there are errors logged in the console
Reproduces how often
Always
Additional Information
Appears to be an issue with the UseStyles subcomponent. This is almost certainly an issue with the toast rendering that makes the ThemeProvider unavailable to the Toast container. It is not an issue with LoaderButton itself, but rather that the instance of LoaderButton used in the toast notification aren't able to consume the theme from ThemeProvider.
Description
There is a bug in the error toast notifications that is currently preventing #140 from being replicated. The recent changes to the LoaderButton component have unexpectedly broken the error toast notification.
Steps to Reproduce
Expected behavior
Error notification about "missing region" should appear
Actual behavior
No notification appears and there are errors logged in the console
Reproduces how often
Always
Additional Information
Appears to be an issue with the UseStyles subcomponent. This is almost certainly an issue with the toast rendering that makes the ThemeProvider unavailable to the Toast container. It is not an issue with LoaderButton itself, but rather that the instance of LoaderButton used in the toast notification aren't able to consume the theme from ThemeProvider.