diff --git a/src/pages/ManageValidator/LeftManage/ValidatorBlueSection/ValidatorInfo.tsx b/src/pages/ManageValidator/LeftManage/ValidatorBlueSection/ValidatorInfo.tsx index db694211..d51123be 100644 --- a/src/pages/ManageValidator/LeftManage/ValidatorBlueSection/ValidatorInfo.tsx +++ b/src/pages/ManageValidator/LeftManage/ValidatorBlueSection/ValidatorInfo.tsx @@ -7,7 +7,7 @@ import Icon from '../../../../components/General/Icon' import { useState } from 'react' const ValidatorInfo = () => { - const intervalsOfTime = ['Day', 'Week', 'Month', 'Year'] + const intervalsOfTime: string[] = ['Day', 'Week', 'Month', 'Year'] const [currentInterval, setCurrentInterval] = useState(0) const toggleIntervalChange = () => { @@ -17,7 +17,8 @@ const ValidatorInfo = () => { } const togglePreviousInterval = () => { setCurrentInterval( - prevInterval => (prevInterval - 1 + intervalsOfTime.length) % intervalsOfTime.length, + prevInterval => + (prevInterval - 1 + intervalsOfTime.length) % intervalsOfTime.length, ) }