diff --git a/centrifuge-app/src/components/InvestRedeem/InvestRedeem.tsx b/centrifuge-app/src/components/InvestRedeem/InvestRedeem.tsx index b266183461..92296da811 100644 --- a/centrifuge-app/src/components/InvestRedeem/InvestRedeem.tsx +++ b/centrifuge-app/src/components/InvestRedeem/InvestRedeem.tsx @@ -1,3 +1,4 @@ +import { CurrencyBalance } from '@centrifuge/centrifuge-js' import { ConnectionGuard, useGetNetworkName, useWallet } from '@centrifuge/centrifuge-react' import { Network } from '@centrifuge/centrifuge-react/dist/components/WalletProvider/types' import { useGetExplorerUrl } from '@centrifuge/centrifuge-react/dist/components/WalletProvider/utils' @@ -36,9 +37,18 @@ import { RedeemForm } from './RedeemForm' export type InvestRedeemProps = { poolId: string trancheId: string - metadata: PoolMetaDataPartial + metadata?: PoolMetaDataPartial } & InputProps +type HeaderProps = { + sumUnrealizedProfitAtMarketPrice?: CurrencyBalance + sumRealizedProfitFifoByPeriod?: CurrencyBalance +} & InputProps + +type InputProps = { + defaultView?: 'invest' | 'redeem' +} + // @ts-ignore const listFormatter = new Intl.ListFormat('en') @@ -73,7 +83,7 @@ export function InvestRedeem({ poolId, trancheId, ...rest }: InvestRedeemProps) > -
+
{!isTinlakePool && (connectedType === 'substrate' || isEvmOnSubstrate) && }