I've been trying to apply theme to my React app with Material-UI ThemeProvider and am encountering some strange behavior.
I have two themes: day mode and night mode. At app start, night mode is default, and user can switch theme with checkbox.
Theme switching normally from night mode to day mode, but it does not switch back.
Here is the example app, reproducing this behavior:
https://codesandbox.io/s/eloquent-ives-k1np1
What am I doing wrong?