mirror of
https://github.com/kremalicious/portfolio.git
synced 2025-01-03 18:35:00 +01:00
fix warnings
This commit is contained in:
parent
b881b297c4
commit
734a2344a2
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user