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
9f8cc98c
Commit
9f8cc98c
authored
Jan 31, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove method parametr from url
parent
10476eb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
ContractVerification.tsx
ui/pages/ContractVerification.tsx
+10
-0
No files found.
ui/pages/ContractVerification.tsx
View file @
9f8cc98c
...
...
@@ -4,6 +4,7 @@ import React from 'react';
import
{
useAppContext
}
from
'
lib/appContext
'
;
import
isBrowser
from
'
lib/isBrowser
'
;
import
link
from
'
lib/link/link
'
;
import
ContractVerificationForm
from
'
ui/contractVerification/ContractVerificationForm
'
;
import
Address
from
'
ui/shared/address/Address
'
;
import
AddressIcon
from
'
ui/shared/address/AddressIcon
'
;
...
...
@@ -20,6 +21,15 @@ const ContractVerification = () => {
const
router
=
useRouter
();
const
hash
=
router
.
query
.
id
?.
toString
();
const
method
=
router
.
query
.
id
?.
toString
();
React
.
useEffect
(()
=>
{
if
(
method
&&
hash
)
{
router
.
replace
(
link
(
'
address_contract_verification
'
,
{
id
:
hash
}),
undefined
,
{
scroll
:
false
,
shallow
:
true
});
}
// onMount only
// eslint-disable-next-line react-hooks/exhaustive-deps
},
[
]);
return
(
<
Page
>
...
...
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