minor updates
This commit is contained in:
@@ -36,21 +36,3 @@ export const AppBar = () => {
|
||||
</MuiAppBar>
|
||||
)
|
||||
}
|
||||
|
||||
// const AppBarItem: React.FC<{
|
||||
// primaryText: string
|
||||
// secondaryText?: string
|
||||
// Action?: React.ReactNode
|
||||
// }> = ({ primaryText, secondaryText = '', Action }) => {
|
||||
// return (
|
||||
// <Box sx={{ p: 1, mr: 1 }}>
|
||||
// <Typography variant="body2" component="span" sx={{ color: 'grey.600' }}>
|
||||
// {primaryText}:
|
||||
// </Typography>{' '}
|
||||
// <Typography variant="body2" component="span" color="nym.background.dark" sx={{ mr: 1 }}>
|
||||
// {secondaryText}
|
||||
// </Typography>
|
||||
// {Action}
|
||||
// </Box>
|
||||
// )
|
||||
// }
|
||||
|
||||
@@ -100,7 +100,7 @@ const VestingSchedule = () => {
|
||||
const { userBalance, currency } = useContext(ClientContext)
|
||||
const [vestedPercentage, setVestedPercentage] = useState(0)
|
||||
|
||||
const calculatPercentage = () => {
|
||||
const calculatePercentage = () => {
|
||||
const { tokenAllocation, originalVesting } = userBalance
|
||||
if (tokenAllocation?.vesting && tokenAllocation.vested && tokenAllocation.vested !== '0' && originalVesting) {
|
||||
const percentage = Math.round((+tokenAllocation.vested / +originalVesting?.amount.amount) * 100)
|
||||
@@ -111,8 +111,8 @@ const VestingSchedule = () => {
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
calculatPercentage()
|
||||
}, [userBalance.tokenAllocation, calculatPercentage])
|
||||
calculatePercentage()
|
||||
}, [userBalance.tokenAllocation, calculatePercentage])
|
||||
|
||||
return (
|
||||
<TableContainer>
|
||||
|
||||
Reference in New Issue
Block a user