Commit 51ede4f6 authored by isstuev's avatar isstuev

add network name to slise slot id

parent 47423309
...@@ -2,20 +2,22 @@ import { Flex, chakra } from '@chakra-ui/react'; ...@@ -2,20 +2,22 @@ import { Flex, chakra } from '@chakra-ui/react';
import { SliseAd } from '@slise/embed-react'; import { SliseAd } from '@slise/embed-react';
import React from 'react'; import React from 'react';
import appConfig from 'configs/app/config';
const SliseBanner = ({ className }: { className?: string }) => { const SliseBanner = ({ className }: { className?: string }) => {
return ( return (
<> <>
<Flex className={ className } h="90px" display={{ base: 'none', lg: 'flex' }}> <Flex className={ className } h="90px" display={{ base: 'none', lg: 'flex' }}>
<SliseAd <SliseAd
slotId="leaderboard" slotId={ appConfig.network.name || '' }
pub="pub-10" pub="pub-10"
format="728x90" format="728x90"
style={{ width: '728px', height: '90px' }}/> style={{ width: '728px', height: '90px' }}/>
</Flex> </Flex>
<Flex className={ className } h="90px" display={{ base: 'flex', lg: 'none' }}> <Flex className={ className } h="90px" display={{ base: 'flex', lg: 'none' }}>
<SliseAd <SliseAd
slotId="leaderboard" slotId={ appConfig.network.name || '' }
pub="pub-10" pub="pub-10"
format="270x90" format="270x90"
style={{ width: '270px', height: '90px' }}/> style={{ width: '270px', height: '90px' }}/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment