Pull request 1792: 5633-invalid-date
Updates #5633. Squashed commit of the following: commit 889bc7acb82472d72d7b3103554e70342513a567 Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Mar 30 14:31:42 2023 +0300 client: fix dashboard date
This commit is contained in:
@@ -9,11 +9,12 @@ import round from 'lodash/round';
|
||||
import { useSelector } from 'react-redux';
|
||||
import PropTypes from 'prop-types';
|
||||
import './Line.css';
|
||||
import { msToDays } from '../../helpers/helpers';
|
||||
|
||||
const Line = ({
|
||||
data, color = 'black',
|
||||
}) => {
|
||||
const interval = useSelector((state) => state.stats.interval);
|
||||
const interval = msToDays(useSelector((state) => state.stats.interval));
|
||||
|
||||
return <ResponsiveLine
|
||||
enableArea
|
||||
|
||||
Reference in New Issue
Block a user