remove exported util

This commit is contained in:
Hristo Nedelkov 2023-09-16 06:25:11 +03:00
parent 4895fc4f3d
commit 890ea22a86

View File

@ -9,16 +9,13 @@ import LineChart from './LineChart'
import Icon from '../../../components/General/Icon'
import { years } from '../../../constants'
import './calendar.css'
import { getMonthIndicesFromRange } from '../../../utilities'
const userGains = [
10000, 15000, 17500, 20000, 19000, 23222, 25000, 20000, 20000, 21000, 22300, 21000,
]
const getMonthIndicesFromRange = (range: DateRange) => {
if (!range.from || !range.to) return [0, 11]
return [range.from.getMonth(), range.to.getMonth()]
}
const BalanceChartCard = () => {
const [isCalendarVisible, setIsCalendarVisible] = useState(false)