URL filter functionality.

This commit is contained in:
Mike Cao committed 2020-09-25 22:31:18 -07:00
1 parent 6bc371352c
commit 4fded49b03
27 files changed
+251 -117

No files matched your search

+2 -3
View File
@@ -1,6 +1,5 @@
import React from 'react';
import { useTransition, animated } from 'react-spring';
import Button from 'components/common/Button';
import useTheme from 'hooks/useTheme';
import Sun from 'assets/sun.svg';
import Moon from 'assets/moon.svg';
@@ -27,7 +26,7 @@ export default function ThemeButton() {
}
return (
<Button className={styles.button} variant="light" onClick={handleClick}>
<div className={styles.button} onClick={handleClick}>
{transitions.map(({ item, key, props }) =>
item === 'light' ? (
<animated.div key={key} style={props}>
@@ -39,6 +38,6 @@ export default function ThemeButton() {
</animated.div>
),
)}
</Button>
</div>
);
}