1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00

fix warnings

This commit is contained in:
Matthias Kretschmann 2018-06-24 21:44:13 +02:00
parent b881b297c4
commit 734a2344a2
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -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>