mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-01-21 00:40:09 +00:00
remove exported util
This commit is contained in:
parent
4895fc4f3d
commit
890ea22a86
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user