mirror of
https://github.com/kremalicious/portfolio.git
synced 2024-12-22 17:23:22 +01:00
fix warnings
This commit is contained in:
parent
b881b297c4
commit
734a2344a2
@ -58,7 +58,7 @@ class ThemeSwitch extends PureComponent {
|
||||
return (
|
||||
<Fragment>
|
||||
<Helmet>
|
||||
<body className={this.state.dark ? 'dark' : null} />
|
||||
<body className={this.isDark() ? 'dark' : null} />
|
||||
</Helmet>
|
||||
<aside className={styles.themeSwitch}>
|
||||
<label className={styles.checkbox}>
|
||||
@ -69,9 +69,9 @@ class ThemeSwitch extends PureComponent {
|
||||
name="toggle"
|
||||
value="toggle"
|
||||
aria-describedby="toggle"
|
||||
checked={this.state.dark}
|
||||
checked={this.isDark()}
|
||||
/>
|
||||
<ThemeToggle dark={this.state.dark} />
|
||||
<ThemeToggle dark={this.isDark()} />
|
||||
</label>
|
||||
</aside>
|
||||
</Fragment>
|
||||
|
Loading…
Reference in New Issue
Block a user