mirror of
https://github.com/umami-software/umami.git
synced 2026-02-10 15:47:13 +01:00
Updated fetch hook API.
This commit is contained in:
commit
69b317386a
21 changed files with 112 additions and 76 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue