Commit 989a4b5e authored by tom's avatar tom

fix text ad skeleton

parent af6ebf25
...@@ -80,7 +80,7 @@ const PageTitle = ({ title, contentAfter, withTextAd, backLink, className, isLoa ...@@ -80,7 +80,7 @@ const PageTitle = ({ title, contentAfter, withTextAd, backLink, className, isLoa
{ afterTitle } { afterTitle }
</Box> </Box>
{ contentAfter } { contentAfter }
{ withTextAd && <TextAd order={{ base: -1, lg: 100 }} mb={{ base: 6, lg: 0 }} ml="auto"/> } { withTextAd && <TextAd order={{ base: -1, lg: 100 }} mb={{ base: 6, lg: 0 }} ml="auto" w={{ base: '100%', lg: 'auto' }}/> }
</Flex> </Flex>
); );
}; };
......
...@@ -45,6 +45,7 @@ const CoinzillaTextAd = ({ className }: {className?: string}) => { ...@@ -45,6 +45,7 @@ const CoinzillaTextAd = ({ className }: {className?: string}) => {
} }
}) })
.finally(() => { .finally(() => {
// setAdData(MOCK);
setIsLoading(false); setIsLoading(false);
}); });
} }
...@@ -55,7 +56,16 @@ const CoinzillaTextAd = ({ className }: {className?: string}) => { ...@@ -55,7 +56,16 @@ const CoinzillaTextAd = ({ className }: {className?: string}) => {
} }
if (isLoading) { if (isLoading) {
return <Skeleton className={ className } h={{ base: 12, lg: 6 }} w={{ base: '100%', lg: 'auto' }} flexGrow={ 1 } maxW="1000px" display="inline-block"/>; return (
<Skeleton
className={ className }
h={{ base: 12, lg: 6 }}
w="100%"
flexGrow={ 1 }
maxW="800px"
display="block"
/>
);
} }
if (!adData) { if (!adData) {
......
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