Skip to content

Commit 4669111

Browse files
committed
Enable metadata and policy cards
1 parent 4a5f0b9 commit 4669111

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

src/app/pages/RoflAppDetailsPage/PolicyCard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ import CardContent from '@mui/material/CardContent'
66
import Grid from '@mui/material/Grid'
77
import Typography from '@mui/material/Typography'
88
import { Layer, RoflAppPolicy, useGetRuntimeRoflAppsIdTransactions } from '../../../oasis-nexus/api'
9+
import { Network } from '../../../types/network'
910
import { TransactionLink } from '../../components/Transactions/TransactionLink'
1011
import { EmptyStateCard } from './EmptyStateCard'
1112
import { GridRow } from './GridRow'
1213

1314
type PolicyCardProps = {
1415
id: string
1516
isFetched: boolean
16-
network: any
17+
network: Network
1718
policy: RoflAppPolicy | undefined
1819
}
1920

src/app/pages/RoflAppDetailsPage/index.tsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ import { Secrets } from './Secrets'
2929
import { RouterTabs } from '../../components/RouterTabs'
3030
import { instancesContainerId } from '../../utils/tabAnchors'
3131
import { RoflAppDetailsContext } from '../RoflAppDetailsPage/hooks'
32+
import { MetaDataCard } from './MetaDataCard'
33+
import { PolicyCard } from './PolicyCard'
3234

3335
export 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

0 commit comments

Comments
 (0)