Skip to content

Commit 4a5f0b9

Browse files
committed
Align ROFL app header with updated designs
1 parent c73e6d4 commit 4a5f0b9

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/app/pages/RoflAppDetailsPage/index.tsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { useTranslation } from 'react-i18next'
44
import { formatDistanceStrict } from 'date-fns'
55
import Box from '@mui/material/Box'
66
import Grid from '@mui/material/Grid'
7+
import Skeleton from '@mui/material/Skeleton'
78
import Typography from '@mui/material/Typography'
89
import { styled } from '@mui/material/styles'
910
import { Layer, RoflApp, useGetRuntimeRoflAppsId } from '../../../oasis-nexus/api'
@@ -48,7 +49,12 @@ export const RoflAppDetailsPage: FC = () => {
4849

4950
return (
5051
<PageLayout>
51-
<SubPageCard featured title={roflApp?.metadata['net.oasis.rofl.name'] || t('rofl.header')}>
52+
<SubPageCard
53+
featured
54+
title={
55+
isLoading ? <Skeleton variant="text" /> : roflApp?.metadata['net.oasis.rofl.name'] || roflApp?.id
56+
}
57+
>
5258
<RoflAppDetailsView detailsPage isLoading={isLoading} app={roflApp} />
5359
</SubPageCard>
5460
<Grid container spacing={4}>

src/locales/en/translation.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -704,8 +704,7 @@
704704
"adminAccount": "Admin account",
705705
"stakedAmount": "Staked amount",
706706
"endorsement": "Endorsement",
707-
"secrets": "Secrets",
708-
"header": "ROFL App"
707+
"secrets": "Secrets"
709708
},
710709
"search": {
711710
"placeholder": "Address, Block, Contract, Transaction hash, Token name, etc.",

0 commit comments

Comments
 (0)