Skip to content

Commit

Permalink
Merge pull request #1654 from webdev403/feat/replace-spindl-with-hypelab
Browse files Browse the repository at this point in the history
  • Loading branch information
sameepsi authored Jan 24, 2025
2 parents 0302a00 + ab9c0cf commit 3214ec2
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions src/components/HypeLabAds/HypeLabAds.tsx
Original file line number Diff line number Diff line change
@@ -1,30 +1,15 @@
import React from 'react';
import { useMediaQuery, useTheme } from '@material-ui/core';
import { Banner } from '@hypelab/sdk-react';
import { BannerEmbed } from '@spindl-xyz/embed-react';
import { useActiveWeb3React } from 'hooks';

const HypeLabAds: React.FC = () => {
const { isActive, account } = useActiveWeb3React();
const { breakpoints } = useTheme();
const isMobile = useMediaQuery(breakpoints.down('xs'));

return (
<div className='flex justify-center'>
{isActive && (
<BannerEmbed
publisherId='quickswap' // required (get from Spindl team)
placementId='swap_page' // required (get from Spindl team)
style={{
maxWidth: '728px',
width: '100%',
height: '90px',
}} // recommended to add desired width/height
address={account}
/>
)}
{!isActive && isMobile && <Banner placement='4177d327af' />}
{!isActive && !isMobile && <Banner placement='f70b3ef021' />}
{isMobile && <Banner placement='4177d327af' />}
{!isMobile && <Banner placement='f70b3ef021' />}
</div>
);
};
Expand Down

0 comments on commit 3214ec2

Please sign in to comment.