minor updates

This commit is contained in:
fmtabbara
2022-02-25 13:06:11 +00:00
parent 9533c2440a
commit 39fb131d95
2 changed files with 3 additions and 21 deletions
-18
View File
@@ -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>
// )
// }
+3 -3
View File
@@ -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>