11import { FC } from 'react'
22import Card from '@mui/material/Card'
33import CardContent from '@mui/material/CardContent'
4- import Typography from '@mui/material/Typography '
4+ import { Typography } from '@oasisprotocol/ui-library/src/components/typography '
55import { COLORS } from '../../../styles/theme/colors'
66import Box from '@mui/material/Box'
77import { SearchScope } from '../../../types/searchScope'
88import Button from '@mui/material/Button'
9- import { useScreenSize } from '../../hooks/useScreensize'
109import { EthOrOasisAddress } from '../../../oasis-nexus/api'
1110import { useAccountMetadata } from '../../hooks/useAccountMetadata'
1211
1312export const DappBanner : FC < { scope : SearchScope ; ethOrOasisAddress : EthOrOasisAddress } > = ( {
1413 scope,
1514 ethOrOasisAddress,
1615} ) => {
17- const { isMobile } = useScreenSize ( )
18-
1916 const { metadata } = useAccountMetadata ( scope , ethOrOasisAddress )
2017 const dApp = metadata ?. dapp
2118
@@ -27,7 +24,7 @@ export const DappBanner: FC<{ scope: SearchScope; ethOrOasisAddress: EthOrOasisA
2724 border : `2px dashed ${ COLORS . white } ` ,
2825 } }
2926 >
30- < CardContent >
27+ < CardContent sx = { { paddingBottom : '0!important' } } >
3128 < Box
3229 sx = { {
3330 display : 'flex' ,
@@ -37,23 +34,15 @@ export const DappBanner: FC<{ scope: SearchScope; ethOrOasisAddress: EthOrOasisA
3734 gap : 3 ,
3835 } }
3936 >
40- < Typography
41- variant = "h3"
42- sx = { {
43- color : COLORS . white ,
44- fontSize : isMobile ? '18px' : '24px' ,
45- fontWeight : 700 ,
46- lineHeight : '140%' /* 33.6px */ ,
47- } }
48- >
37+ < Typography variant = "h3" className = "text-white" >
4938 { dApp . description }
5039 </ Typography >
5140
5241 < Button
5342 href = { dApp . url }
5443 sx = { {
5544 backgroundColor : COLORS . white ,
56- fontSize : '18px ' ,
45+ fontSize : '14px ' ,
5746 fontWeight : 500 ,
5847 lineHeight : '125%' ,
5948 textTransform : 'none' ,
0 commit comments