File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
src/app/pages/RoflAppDetailsPage Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,15 @@ import CardContent from '@mui/material/CardContent'
66import Grid from '@mui/material/Grid'
77import Typography from '@mui/material/Typography'
88import { Layer , RoflAppPolicy , useGetRuntimeRoflAppsIdTransactions } from '../../../oasis-nexus/api'
9+ import { Network } from '../../../types/network'
910import { TransactionLink } from '../../components/Transactions/TransactionLink'
1011import { EmptyStateCard } from './EmptyStateCard'
1112import { GridRow } from './GridRow'
1213
1314type PolicyCardProps = {
1415 id : string
1516 isFetched : boolean
16- network : any
17+ network : Network
1718 policy : RoflAppPolicy | undefined
1819}
1920
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ import { Secrets } from './Secrets'
2929import { RouterTabs } from '../../components/RouterTabs'
3030import { instancesContainerId } from '../../utils/tabAnchors'
3131import { RoflAppDetailsContext } from '../RoflAppDetailsPage/hooks'
32+ import { MetaDataCard } from './MetaDataCard'
33+ import { PolicyCard } from './PolicyCard'
3234
3335export const RoflAppDetailsPage : FC = ( ) => {
3436 const { t } = useTranslation ( )
@@ -59,12 +61,17 @@ export const RoflAppDetailsPage: FC = () => {
5961 </ SubPageCard >
6062 < Grid container spacing = { 4 } >
6163 < StyledGrid item xs = { 12 } md = { 6 } >
62- { /* TODO: uncomment when other PRs are merged */ }
63- { /* <MetaDataCard isFetched={isFetched} metadata={roflApp?.metadata} /> */ }
64+ < MetaDataCard isFetched = { isFetched } metadata = { roflApp ?. metadata } />
6465 </ StyledGrid >
6566 < StyledGrid item xs = { 12 } md = { 6 } >
66- { /* TODO: uncomment when other PRs are merged */ }
67- { /* <PolicyCard isFetched={isFetched} policy={roflApp?.policy} /> */ }
67+ { roflApp && (
68+ < PolicyCard
69+ id = { roflApp ?. id }
70+ network = { roflApp ?. network }
71+ isFetched = { isFetched }
72+ policy = { roflApp ?. policy }
73+ />
74+ ) }
6875 </ StyledGrid >
6976 </ Grid >
7077 < RouterTabs
You can’t perform that action at this time.
0 commit comments