Commit 2f0488e7 authored by isstuev's avatar isstuev

add ad

parent cd7118ac
...@@ -22,6 +22,11 @@ const hooksConfig = { ...@@ -22,6 +22,11 @@ const hooksConfig = {
// FIXME: idk why mobile test doesn't work (it's ok locally) // FIXME: idk why mobile test doesn't work (it's ok locally)
// test('base view +@mobile +@dark-mode', async({ mount, page }) => { // test('base view +@mobile +@dark-mode', async({ mount, page }) => {
test('base view +@dark-mode', async({ mount, page }) => { test('base view +@dark-mode', async({ mount, page }) => {
await page.route('https://request-global.czilladx.com/serve/native.php?z=19260bf627546ab7242', (route) => route.fulfill({
status: 200,
body: '',
}));
await page.route(TOKEN_API_URL, (route) => route.fulfill({ await page.route(TOKEN_API_URL, (route) => route.fulfill({
status: 200, status: 200,
body: JSON.stringify(tokenInfo), body: JSON.stringify(tokenInfo),
......
...@@ -9,6 +9,7 @@ import { useAppContext } from 'lib/appContext'; ...@@ -9,6 +9,7 @@ import { useAppContext } from 'lib/appContext';
import useIsMobile from 'lib/hooks/useIsMobile'; import useIsMobile from 'lib/hooks/useIsMobile';
import useQueryWithPages from 'lib/hooks/useQueryWithPages'; import useQueryWithPages from 'lib/hooks/useQueryWithPages';
import isBrowser from 'lib/isBrowser'; import isBrowser from 'lib/isBrowser';
import TextAd from 'ui/shared/ad/TextAd';
import Page from 'ui/shared/Page/Page'; import Page from 'ui/shared/Page/Page';
import PageTitle from 'ui/shared/Page/PageTitle'; import PageTitle from 'ui/shared/Page/PageTitle';
import type { Props as PaginationProps } from 'ui/shared/Pagination'; import type { Props as PaginationProps } from 'ui/shared/Pagination';
...@@ -84,14 +85,17 @@ const TokenPageContent = () => { ...@@ -84,14 +85,17 @@ const TokenPageContent = () => {
<Skeleton w="500px" h={ 10 }/> <Skeleton w="500px" h={ 10 }/>
</Flex> </Flex>
) : ( ) : (
<PageTitle <>
text={ `${ tokenQuery.data?.name } (${ tokenQuery.data?.symbol }) token` } <TextAd mb={ 6 }/>
backLinkUrl={ hasGoBackLink ? referrer : undefined } <PageTitle
backLinkLabel="Back to tokens list" text={ `${ tokenQuery.data?.name } (${ tokenQuery.data?.symbol }) token` }
additionalsLeft={ ( backLinkUrl={ hasGoBackLink ? referrer : undefined }
<TokenLogo hash={ tokenQuery.data?.address } name={ tokenQuery.data?.name } boxSize={ 6 }/> backLinkLabel="Back to tokens list"
) } additionalsLeft={ (
/> <TokenLogo hash={ tokenQuery.data?.address } name={ tokenQuery.data?.name } boxSize={ 6 }/>
) }
/>
</>
) } ) }
<TokenContractInfo tokenQuery={ tokenQuery }/> <TokenContractInfo tokenQuery={ tokenQuery }/>
<TokenDetails tokenQuery={ tokenQuery }/> <TokenDetails tokenQuery={ tokenQuery }/>
......
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