feat: add work in progress 7.0 code

Co-authored-by: Alex Sparkes <turbomarshmello@gmail.com>
This commit is contained in:
David Ralph
2022-04-08 14:48:36 +01:00
parent e0820c6b2a
commit 361fae7f25
136 changed files with 8631 additions and 3500 deletions

View File

@@ -13,7 +13,7 @@ export default class Switch extends PureComponent {
}
handleChange = () => {
const value = (this.state.checked === true) ? false : true;
const value = (this.state.checked !== true);
localStorage.setItem(this.props.name, value);
this.setState({
@@ -24,7 +24,7 @@ export default class Switch extends PureComponent {
if (this.props.element) {
if (!document.querySelector(this.props.element)) {
document.querySelector('.reminder-info').style.display = 'block';
document.querySelector('.reminder-info').style.display = 'flex';
return localStorage.setItem('showReminder', true);
}
}