diff --git a/components/metrics/MetricsTable.js b/components/metrics/MetricsTable.js index 0d83fc22..15eeb893 100644 --- a/components/metrics/MetricsTable.js +++ b/components/metrics/MetricsTable.js @@ -13,6 +13,7 @@ import { DEFAULT_ANIMATION_DURATION } from 'lib/constants'; import Icons from 'components/icons'; import useMessages from 'hooks/useMessages'; import styles from './MetricsTable.module.css'; +import useLocale from 'hooks/useLocale'; export default function MetricsTable({ websiteId, @@ -69,6 +70,7 @@ export default function MetricsTable({ } return []; }, [data, error, dataFilter, filterOptions]); + const { dir } = useLocale(); return (
@@ -80,7 +82,7 @@ export default function MetricsTable({ diff --git a/components/metrics/WebsiteChart.js b/components/metrics/WebsiteChart.js index cc27ac25..fe7f90f9 100644 --- a/components/metrics/WebsiteChart.js +++ b/components/metrics/WebsiteChart.js @@ -18,6 +18,7 @@ import Icons from 'components/icons'; import useSticky from 'hooks/useSticky'; import useMessages from 'hooks/useMessages'; import styles from './WebsiteChart.module.css'; +import useLocale from 'hooks/useLocale'; export default function WebsiteChart({ websiteId, @@ -72,6 +73,7 @@ export default function WebsiteChart({ return { pageviews: [], sessions: [] }; }, [data, modified]); + const { dir } = useLocale(); return ( <> @@ -80,7 +82,9 @@ export default function WebsiteChart({