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
5020e8c2
Commit
5020e8c2
authored
Apr 17, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix next/link
parent
c271d6ff
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
+6
-6
TokenSelect.tsx
ui/address/tokenSelect/TokenSelect.tsx
+1
-1
AppCardLink.tsx
ui/apps/AppCardLink.tsx
+1
-1
AppModalLink.tsx
ui/apps/AppModalLink.tsx
+1
-1
LinkInternal.tsx
ui/shared/LinkInternal.tsx
+1
-1
NavLink.tsx
ui/snippets/navigation/NavLink.tsx
+1
-1
TokenInventoryItem.tsx
ui/token/TokenInventoryItem.tsx
+1
-1
No files found.
ui/address/tokenSelect/TokenSelect.tsx
View file @
5020e8c2
...
@@ -83,7 +83,7 @@ const TokenSelect = ({ onClick }: Props) => {
...
@@ -83,7 +83,7 @@ const TokenSelect = ({ onClick }: Props) => {
}
}
<Tooltip label="Show all tokens">
<Tooltip label="Show all tokens">
<Box>
<Box>
<NextLink href={{ pathname: '/address/[hash]', query: { hash: addressHash, tab: 'tokens' } }} passHref>
<NextLink href={{ pathname: '/address/[hash]', query: { hash: addressHash, tab: 'tokens' } }} passHref
legacyBehavior
>
<IconButton
<IconButton
aria-label="Show all tokens"
aria-label="Show all tokens"
variant="outline"
variant="outline"
...
...
ui/apps/AppCardLink.tsx
View file @
5020e8c2
...
@@ -15,7 +15,7 @@ const AppLink = ({ url, external, id, title }: Props) => {
...
@@ -15,7 +15,7 @@ const AppLink = ({ url, external, id, title }: Props) => {
{
title
}
{
title
}
</
LinkOverlay
>
</
LinkOverlay
>
)
:
(
)
:
(
<
NextLink
href=
{
{
pathname
:
'
/apps/[id]
'
,
query
:
{
id
}
}
}
passHref
>
<
NextLink
href=
{
{
pathname
:
'
/apps/[id]
'
,
query
:
{
id
}
}
}
passHref
legacyBehavior
>
<
LinkOverlay
>
<
LinkOverlay
>
{
title
}
{
title
}
</
LinkOverlay
>
</
LinkOverlay
>
...
...
ui/apps/AppModalLink.tsx
View file @
5020e8c2
...
@@ -27,7 +27,7 @@ const AppModalLink = ({ url, external, id }: Props) => {
...
@@ -27,7 +27,7 @@ const AppModalLink = ({ url, external, id }: Props) => {
{
...
buttonProps
}
{
...
buttonProps
}
>
Launch app
</
Button
>
>
Launch app
</
Button
>
)
:
(
)
:
(
<
NextLink
href=
{
{
pathname
:
'
/apps/[id]
'
,
query
:
{
id
}
}
}
passHref
>
<
NextLink
href=
{
{
pathname
:
'
/apps/[id]
'
,
query
:
{
id
}
}
}
passHref
legacyBehavior
>
<
Button
<
Button
as=
"a"
as=
"a"
{
...
buttonProps
}
{
...
buttonProps
}
...
...
ui/shared/LinkInternal.tsx
View file @
5020e8c2
...
@@ -12,7 +12,7 @@ const LinkInternal = (props: LinkProps, ref: LegacyRef<HTMLAnchorElement>) => {
...
@@ -12,7 +12,7 @@ const LinkInternal = (props: LinkProps, ref: LegacyRef<HTMLAnchorElement>) => {
}
}
return
(
return
(
<
NextLink
href=
{
props
.
href
as
NextLinkProps
[
'
href
'
]
}
passHref
target=
{
props
.
target
}
>
<
NextLink
href=
{
props
.
href
as
NextLinkProps
[
'
href
'
]
}
passHref
target=
{
props
.
target
}
legacyBehavior
>
<
Link
{
...
props
}
ref=
{
ref
}
/>
<
Link
{
...
props
}
ref=
{
ref
}
/>
</
NextLink
>
</
NextLink
>
);
);
...
...
ui/snippets/navigation/NavLink.tsx
View file @
5020e8c2
...
@@ -71,7 +71,7 @@ const NavLink = ({ item, isCollapsed, px, className }: Props) => {
...
@@ -71,7 +71,7 @@ const NavLink = ({ item, isCollapsed, px, className }: Props) => {
{
/* why not NextLink in all cases? since prev UI and new one are hosting in the same domain and global routing is managed by nginx */
}
{
/* why not NextLink in all cases? since prev UI and new one are hosting in the same domain and global routing is managed by nginx */
}
{
/* we have to hard reload page on every transition between urls from different part of the app */
}
{
/* we have to hard reload page on every transition between urls from different part of the app */
}
{
isInternalItem
(
item
)
&&
item
.
isNewUi
?
(
{
isInternalItem
(
item
)
&&
item
.
isNewUi
?
(
<
NextLink
href=
{
item
.
nextRoute
}
passHref
>
<
NextLink
href=
{
item
.
nextRoute
}
passHref
legacyBehavior
>
{
content
}
{
content
}
</
NextLink
>
</
NextLink
>
)
:
content
}
)
:
content
}
...
...
ui/token/TokenInventoryItem.tsx
View file @
5020e8c2
...
@@ -26,7 +26,7 @@ const NFTItem = ({ item }: Props) => {
...
@@ -26,7 +26,7 @@ const NFTItem = ({ item }: Props) => {
fontWeight=
{
500
}
fontWeight=
{
500
}
lineHeight=
"20px"
lineHeight=
"20px"
>
>
<
NextLink
href=
{
{
pathname
:
'
/token/[hash]/instance/[id]
'
,
query
:
{
hash
:
item
.
token
.
address
,
id
:
item
.
id
}
}
}
passHref
>
<
NextLink
href=
{
{
pathname
:
'
/token/[hash]/instance/[id]
'
,
query
:
{
hash
:
item
.
token
.
address
,
id
:
item
.
id
}
}
}
passHref
legacyBehavior
>
<
LinkOverlay
>
<
LinkOverlay
>
<
NftMedia
<
NftMedia
mb=
"18px"
mb=
"18px"
...
...
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