fix and format
This commit is contained in:
parent
818f984f7b
commit
f9b77511d2
17 changed files with 206 additions and 202 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import * as React from "react";
|
||||
import * as React from 'react'
|
||||
|
||||
import styles from "./ThemeButton.module.css";
|
||||
import styles from './ThemeButton.module.css'
|
||||
|
||||
const ThemeButton = ({ darkTheme, toggleTheme }: any) => (
|
||||
<button className={styles.button} onClick={toggleTheme}>
|
||||
|
|
@ -10,10 +10,10 @@ const ThemeButton = ({ darkTheme, toggleTheme }: any) => (
|
|||
width="1.5em"
|
||||
viewBox="0 0 100 100"
|
||||
>
|
||||
<circle cx="50" cy="50" r="40" fill={darkTheme ? "#F5F5F5" : "#0A0A0A"} />
|
||||
<circle cx="60" cy="50" r="35" fill={darkTheme ? "#111111" : "#FFFFFF"} />
|
||||
<circle cx="50" cy="50" r="40" fill={darkTheme ? '#F5F5F5' : '#0A0A0A'} />
|
||||
<circle cx="60" cy="50" r="35" fill={darkTheme ? '#111111' : '#FFFFFF'} />
|
||||
</svg>
|
||||
</button>
|
||||
);
|
||||
)
|
||||
|
||||
export default ThemeButton;
|
||||
export default ThemeButton
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue