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
0b47e4f1
Unverified
Commit
0b47e4f1
authored
Apr 15, 2024
by
Igor Stuev
Committed by
GitHub
Apr 15, 2024
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1811 from blockscout/fe-1810
custom claim funds link for optimistic rollups
parents
46336362
362b87ad
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
TxDetailsWithdrawalStatus.tsx
ui/tx/details/TxDetailsWithdrawalStatus.tsx
+5
-2
No files found.
ui/tx/details/TxDetailsWithdrawalStatus.tsx
View file @
0b47e4f1
...
...
@@ -4,6 +4,7 @@ import React from 'react';
import
type
{
OptimisticL2WithdrawalStatus
}
from
'
types/api/optimisticL2
'
;
import
{
WITHDRAWAL_STATUSES
}
from
'
types/api/optimisticL2
'
;
import
config
from
'
configs/app
'
;
import
TxEntityL1
from
'
ui/shared/entities/tx/TxEntityL1
'
;
import
VerificationSteps
from
'
ui/shared/verificationSteps/VerificationSteps
'
;
...
...
@@ -12,8 +13,10 @@ interface Props {
l1TxHash
:
string
|
undefined
;
}
const
rollupFeature
=
config
.
features
.
rollup
;
const
TxDetailsWithdrawalStatus
=
({
status
,
l1TxHash
}:
Props
)
=>
{
if
(
!
status
||
!
WITHDRAWAL_STATUSES
.
includes
(
status
))
{
if
(
!
status
||
!
WITHDRAWAL_STATUSES
.
includes
(
status
)
||
!
rollupFeature
.
isEnabled
||
rollupFeature
.
type
!==
'
optimistic
'
)
{
return
null
;
}
...
...
@@ -46,7 +49,7 @@ const TxDetailsWithdrawalStatus = ({ status, l1TxHash }: Props) => {
variant=
"outline"
size=
"sm"
as=
"a"
href=
"https://app.optimism.io/bridge/withdraw"
href=
{
rollupFeature
.
L2WithdrawalUrl
}
target=
"_blank"
>
Claim funds
...
...
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