Commit bc7f97b8 authored by Max Alekseenko's avatar Max Alekseenko

fix merge issue

parent 5f575d69
...@@ -87,32 +87,29 @@ const MarketplaceApp = () => { ...@@ -87,32 +87,29 @@ const MarketplaceApp = () => {
} }
return ( return (
<> <Center
{ !isPending && <PageTitle title={ data.title } backLink={ backLink }/> } h="100vh"
<Center mx={{ base: -4, lg: -6 }}
h="100vh" >
mx={{ base: -4, lg: -6 }} { (isFrameLoading) && (
> <ContentLoader/>
{ (isFrameLoading) && ( ) }
<ContentLoader/>
) } { data && (
<Box
{ data && ( allow={ IFRAME_ALLOW_ATTRIBUTE }
<Box ref={ ref }
allow={ IFRAME_ALLOW_ATTRIBUTE } sandbox={ IFRAME_SANDBOX_ATTRIBUTE }
ref={ ref } as="iframe"
sandbox={ IFRAME_SANDBOX_ATTRIBUTE } h="100%"
as="iframe" w="100%"
h="100%" display={ isFrameLoading ? 'none' : 'block' }
w="100%" src={ data.url }
display={ isFrameLoading ? 'none' : 'block' } title={ data.title }
src={ data.url } onLoad={ handleIframeLoad }
title={ data.title } />
onLoad={ handleIframeLoad } ) }
/> </Center>
) }
</Center>
</>
); );
}; };
......
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