File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
src/components/HypeLabAds Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change 11import React from 'react' ;
22import { useMediaQuery , useTheme } from '@material-ui/core' ;
33import { Banner } from '@hypelab/sdk-react' ;
4- import { BannerEmbed } from '@spindl-xyz/embed-react' ;
5- import { useActiveWeb3React } from 'hooks' ;
64
75const HypeLabAds : React . FC = ( ) => {
8- const { isActive, account } = useActiveWeb3React ( ) ;
96 const { breakpoints } = useTheme ( ) ;
107 const isMobile = useMediaQuery ( breakpoints . down ( 'xs' ) ) ;
118
129 return (
1310 < div className = 'flex justify-center' >
14- { isActive && (
15- < BannerEmbed
16- publisherId = 'quickswap' // required (get from Spindl team)
17- placementId = 'swap_page' // required (get from Spindl team)
18- style = { {
19- maxWidth : '728px' ,
20- width : '100%' ,
21- height : '90px' ,
22- } } // recommended to add desired width/height
23- address = { account }
24- />
25- ) }
26- { ! isActive && isMobile && < Banner placement = '4177d327af' /> }
27- { ! isActive && ! isMobile && < Banner placement = 'f70b3ef021' /> }
11+ { isMobile && < Banner placement = '4177d327af' /> }
12+ { ! isMobile && < Banner placement = 'f70b3ef021' /> }
2813 </ div >
2914 ) ;
3015} ;
You can’t perform that action at this time.
0 commit comments