Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
vicotor
frontend
Commits
2f0488e7
Commit
2f0488e7
authored
Jan 25, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add ad
parent
cd7118ac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
8 deletions
+17
-8
Token.pw.tsx
ui/pages/Token.pw.tsx
+5
-0
Token.tsx
ui/pages/Token.tsx
+12
-8
No files found.
ui/pages/Token.pw.tsx
View file @
2f0488e7
...
@@ -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
),
...
...
ui/pages/Token.tsx
View file @
2f0488e7
...
@@ -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
}
/>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment