URL filter functionality.

This commit is contained in:
Mike Cao 2020-09-25 22:31:18 -07:00
parent 6bc371352c
commit 4fded49b03
27 changed files with 251 additions and 117 deletions

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>
);
}