Refactored funnel report. Made BarChart more generic.

This commit is contained in:
Mike Cao committed 2023-05-24 21:40:02 -07:00
1 parent 050cd2f5d9
commit fb4dd75e18
24 files changed
+327 -367

No files matched your search

+2 -2
View File
@@ -5,7 +5,7 @@ import Icons from 'components/icons';
import styles from './ThemeButton.module.css';
export function ThemeButton() {
const [theme, setTheme] = useTheme();
const { theme, saveTheme } = useTheme();
const transitions = useTransition(theme, {
initial: { opacity: 1 },
@@ -21,7 +21,7 @@ export function ThemeButton() {
});
function handleClick() {
setTheme(theme === 'light' ? 'dark' : 'light');
saveTheme(theme === 'light' ? 'dark' : 'light');
}
return (