mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
add ad
This commit is contained in:
@@ -22,6 +22,11 @@ const hooksConfig = {
|
||||
// FIXME: idk why mobile test doesn't work (it's ok locally)
|
||||
// test('base view +@mobile +@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({
|
||||
status: 200,
|
||||
body: JSON.stringify(tokenInfo),
|
||||
|
||||
+12
-8
@@ -9,6 +9,7 @@ import { useAppContext } from 'lib/appContext';
|
||||
import useIsMobile from 'lib/hooks/useIsMobile';
|
||||
import useQueryWithPages from 'lib/hooks/useQueryWithPages';
|
||||
import isBrowser from 'lib/isBrowser';
|
||||
import TextAd from 'ui/shared/ad/TextAd';
|
||||
import Page from 'ui/shared/Page/Page';
|
||||
import PageTitle from 'ui/shared/Page/PageTitle';
|
||||
import type { Props as PaginationProps } from 'ui/shared/Pagination';
|
||||
@@ -84,14 +85,17 @@ const TokenPageContent = () => {
|
||||
<Skeleton w="500px" h={ 10 }/>
|
||||
</Flex>
|
||||
) : (
|
||||
<PageTitle
|
||||
text={ `${ tokenQuery.data?.name } (${ tokenQuery.data?.symbol }) token` }
|
||||
backLinkUrl={ hasGoBackLink ? referrer : undefined }
|
||||
backLinkLabel="Back to tokens list"
|
||||
additionalsLeft={ (
|
||||
<TokenLogo hash={ tokenQuery.data?.address } name={ tokenQuery.data?.name } boxSize={ 6 }/>
|
||||
) }
|
||||
/>
|
||||
<>
|
||||
<TextAd mb={ 6 }/>
|
||||
<PageTitle
|
||||
text={ `${ tokenQuery.data?.name } (${ tokenQuery.data?.symbol }) token` }
|
||||
backLinkUrl={ hasGoBackLink ? referrer : undefined }
|
||||
backLinkLabel="Back to tokens list"
|
||||
additionalsLeft={ (
|
||||
<TokenLogo hash={ tokenQuery.data?.address } name={ tokenQuery.data?.name } boxSize={ 6 }/>
|
||||
) }
|
||||
/>
|
||||
</>
|
||||
) }
|
||||
<TokenContractInfo tokenQuery={ tokenQuery }/>
|
||||
<TokenDetails tokenQuery={ tokenQuery }/>
|
||||
|
||||
Reference in New Issue
Block a user