Refactoring
This update shouldn't change any functionality
Update
- The key of one of the localStorage values was wrong (was
sdh:theme-setting
, correct iswdh:theme-setting
). Fixed this by introducing a versioning and migration system for localStorage. The wrong key gets migrated to the correct one automatically. This way the setting shouldn't be resetted. After the migration the localStorage should be at version 1 (v1
). - Removed TState (my own state management library) and replaced it with React Contexts and Hooks.