1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-06-30 21:51:50 +02: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 ( return (
<Fragment> <Fragment>
<Helmet> <Helmet>
<body className={this.state.dark ? 'dark' : null} /> <body className={this.isDark() ? 'dark' : null} />
</Helmet> </Helmet>
<aside className={styles.themeSwitch}> <aside className={styles.themeSwitch}>
<label className={styles.checkbox}> <label className={styles.checkbox}>
@ -69,9 +69,9 @@ class ThemeSwitch extends PureComponent {
name="toggle" name="toggle"
value="toggle" value="toggle"
aria-describedby="toggle" aria-describedby="toggle"
checked={this.state.dark} checked={this.isDark()}
/> />
<ThemeToggle dark={this.state.dark} /> <ThemeToggle dark={this.isDark()} />
</label> </label>
</aside> </aside>
</Fragment> </Fragment>