Dark mode.

This commit is contained in:
Mike Cao 2020-09-20 01:33:39 -07:00
parent 4bb95cd997
commit aa265d1d42
29 changed files with 221 additions and 60 deletions

View file

@ -0,0 +1,13 @@
import React from 'react';
import Button from 'components/common/Button';
import useTheme from 'hooks/useTheme';
export default function ThemeButton() {
const [theme, setTheme] = useTheme();
function handleClick() {
setTheme(theme === 'light' ? 'dark' : 'light');
}
return <Button onClick={handleClick}>{theme}</Button>;
}