Updated fetch hook API.

This commit is contained in:
Mike Cao 2020-10-09 12:39:03 -07:00
commit 69b317386a
21 changed files with 112 additions and 76 deletions

View file

@ -4,7 +4,7 @@ import tinycolor from 'tinycolor2';
import CheckVisible from 'components/helpers/CheckVisible';
import BarChart from './BarChart';
import useTheme from 'hooks/useTheme';
import { THEME_COLORS } from 'lib/constants';
import { THEME_COLORS, DEFAULT_ANIMATION_DURATION } from 'lib/constants';
export default function PageviewsChart({
websiteId,
@ -13,7 +13,7 @@ export default function PageviewsChart({
records,
className,
loading,
animationDuration = 300,
animationDuration = DEFAULT_ANIMATION_DURATION,
}) {
const intl = useIntl();
const [theme] = useTheme();