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
4afed289
Commit
4afed289
authored
Dec 29, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[skip ci] fix link in TokenSelect
parent
c31b7793
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
TokenSelectItem.tsx
ui/address/tokenSelect/TokenSelectItem.tsx
+4
-5
LinkInternal.tsx
ui/shared/LinkInternal.tsx
+0
-1
No files found.
ui/address/tokenSelect/TokenSelectItem.tsx
View file @
4afed289
...
@@ -5,6 +5,7 @@ import React from 'react';
...
@@ -5,6 +5,7 @@ import React from 'react';
import
{
route
}
from
'
nextjs-routes
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
TokenEntity
from
'
ui/shared/entities/token/TokenEntity
'
;
import
TokenEntity
from
'
ui/shared/entities/token/TokenEntity
'
;
import
LinkInternal
from
'
ui/shared/LinkInternal
'
;
import
TruncatedValue
from
'
ui/shared/TruncatedValue
'
;
import
TruncatedValue
from
'
ui/shared/TruncatedValue
'
;
import
type
{
TokenEnhancedData
}
from
'
../utils/tokenUtils
'
;
import
type
{
TokenEnhancedData
}
from
'
../utils/tokenUtils
'
;
...
@@ -47,11 +48,10 @@ const TokenSelectItem = ({ data }: Props) => {
...
@@ -47,11 +48,10 @@ const TokenSelectItem = ({ data }: Props) => {
}
}
})();
})();
// TODO add filter param when token page is ready
const
url
=
route
({
pathname
:
'
/token/[hash]
'
,
query
:
{
hash
:
data
.
token
.
address
}
});
const
url
=
route
({
pathname
:
'
/token/[hash]
'
,
query
:
{
hash
:
data
.
token
.
address
}
});
return
(
return
(
<
Flex
<
LinkInternal
px=
{
1
}
px=
{
1
}
py=
"10px"
py=
"10px"
display=
"flex"
display=
"flex"
...
@@ -62,9 +62,8 @@ const TokenSelectItem = ({ data }: Props) => {
...
@@ -62,9 +62,8 @@ const TokenSelectItem = ({ data }: Props) => {
_hover=
{
{
_hover=
{
{
bgColor
:
useColorModeValue
(
'
blue.50
'
,
'
gray.800
'
),
bgColor
:
useColorModeValue
(
'
blue.50
'
,
'
gray.800
'
),
}
}
}
}
color=
"initial"
fontSize=
"sm"
fontSize=
"sm"
cursor=
"pointer"
as=
"a"
href=
{
url
}
href=
{
url
}
>
>
<
Flex
alignItems=
"center"
w=
"100%"
overflow=
"hidden"
>
<
Flex
alignItems=
"center"
w=
"100%"
overflow=
"hidden"
>
...
@@ -80,7 +79,7 @@ const TokenSelectItem = ({ data }: Props) => {
...
@@ -80,7 +79,7 @@ const TokenSelectItem = ({ data }: Props) => {
<
Flex
alignItems=
"center"
justifyContent=
"space-between"
w=
"100%"
whiteSpace=
"nowrap"
>
<
Flex
alignItems=
"center"
justifyContent=
"space-between"
w=
"100%"
whiteSpace=
"nowrap"
>
{
secondRow
}
{
secondRow
}
</
Flex
>
</
Flex
>
</
Flex
>
</
LinkInternal
>
);
);
};
};
...
...
ui/shared/LinkInternal.tsx
View file @
4afed289
...
@@ -5,7 +5,6 @@ import NextLink from 'next/link';
...
@@ -5,7 +5,6 @@ import NextLink from 'next/link';
import
type
{
LegacyRef
}
from
'
react
'
;
import
type
{
LegacyRef
}
from
'
react
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
// NOTE! use this component only for links to pages that are completely implemented in new UI
const
LinkInternal
=
({
isLoading
,
...
props
}:
LinkProps
&
{
isLoading
?:
boolean
},
ref
:
LegacyRef
<
HTMLAnchorElement
>
)
=>
{
const
LinkInternal
=
({
isLoading
,
...
props
}:
LinkProps
&
{
isLoading
?:
boolean
},
ref
:
LegacyRef
<
HTMLAnchorElement
>
)
=>
{
if
(
isLoading
)
{
if
(
isLoading
)
{
return
<
Flex
alignItems=
"center"
{
...
props
as
FlexProps
}
>
{
props
.
children
}
</
Flex
>;
return
<
Flex
alignItems=
"center"
{
...
props
as
FlexProps
}
>
{
props
.
children
}
</
Flex
>;
...
...
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