diff --git a/src/components/assetsView/views/AssetTable.tsx b/src/components/assetsView/views/AssetTable.tsx index f125cc5..3efd274 100644 --- a/src/components/assetsView/views/AssetTable.tsx +++ b/src/components/assetsView/views/AssetTable.tsx @@ -30,7 +30,7 @@ export const AssetTable: FC<{ {props.realtokens.map((item, index) => { const isAProperty = item.hasOwnProperty('rentStatus') if (!isAProperty) { - return + return } return })} @@ -159,4 +159,62 @@ const AssetTableRow: FC<{ value: UserRealtoken }> = (props) => { ) } + +const RWATableRow: FC<{ value: RWARealtoken }> = (props) => { + const { t } = useTranslation('common', { keyPrefix: 'numbers' }) + const transfersIsLoaded = useSelector(selectTransfersIsLoaded) + + const { shortName, value, unitPriceCost, amount, totalInvestment } = + props.value + + return ( + + + {shortName} + + + {useCurrencyValue(value)} + + {transfersIsLoaded ? ( + <> + + {'-'} + + + {'-'} + + + ) : null} + + + {useCurrencyValue(unitPriceCost)} + + + {t('decimal', { value: amount })} + + + {'-'} + + + {'-'} + + + {'-'} + + + {'-'} + + + {'-'} + + + {useCurrencyValue(totalInvestment)} + + + {'-'} + + + ) +} + AssetTableRow.displayName = 'AssetTableRow'