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
4a4ecfbc
Commit
4a4ecfbc
authored
Apr 18, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text updates
parent
4112b354
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
31 additions
and
16 deletions
+31
-16
AddressVerificationStepAddress.tsx
...ressVerification/steps/AddressVerificationStepAddress.tsx
+4
-6
AddressVerificationStepSignature.tsx
...ssVerification/steps/AddressVerificationStepSignature.tsx
+2
-4
VerifiedAddresses.tsx
ui/pages/VerifiedAddresses.tsx
+7
-6
AdminSupportText.tsx
ui/shared/texts/AdminSupportText.tsx
+18
-0
No files found.
ui/addressVerification/steps/AddressVerificationStepAddress.tsx
View file @
4a4ecfbc
import
{
Alert
,
Box
,
Button
,
Flex
,
Link
}
from
'
@chakra-ui/react
'
;
import
{
Alert
,
Box
,
Button
,
Flex
}
from
'
@chakra-ui/react
'
;
import
{
route
}
from
'
nextjs-routes
'
;
import
React
from
'
react
'
;
import
type
{
SubmitHandler
}
from
'
react-hook-form
'
;
...
...
@@ -16,6 +16,7 @@ import appConfig from 'configs/app/config';
import
type
{
ResourceError
}
from
'
lib/api/resources
'
;
import
useApiFetch
from
'
lib/api/useApiFetch
'
;
import
LinkInternal
from
'
ui/shared/LinkInternal
'
;
import
AdminSupportText
from
'
ui/shared/texts/AdminSupportText
'
;
import
AddressVerificationFieldAddress
from
'
../fields/AddressVerificationFieldAddress
'
;
type
Fields
=
RootFields
&
AddressVerificationFormFirstStepFields
;
...
...
@@ -99,17 +100,14 @@ const AddressVerificationStepAddress = ({ defaultAddress, onContinue }: Props) =
return
(
<
form
noValidate
onSubmit=
{
onSubmit
}
>
<
Box
>
Let’s check your address..
.
</
Box
>
<
Box
>
Enter the contract address you are verifying ownership for
.
</
Box
>
{
rootError
&&
<
Alert
status=
"warning"
mt=
{
3
}
>
{
rootError
}
</
Alert
>
}
<
AddressVerificationFieldAddress
formState=
{
formState
}
control=
{
control
}
/>
<
Flex
alignItems=
"center"
mt=
{
8
}
columnGap=
{
5
}
>
<
Button
size=
"lg"
type=
"submit"
isDisabled=
{
formState
.
isSubmitting
}
>
Continue
</
Button
>
<
Box
>
<
span
>
Contact
</
span
>
<
Link
href=
"mailto:help@blockscout.com"
>
help@blockscout.com
</
Link
>
</
Box
>
<
AdminSupportText
/>
</
Flex
>
</
form
>
);
...
...
ui/addressVerification/steps/AddressVerificationStepSignature.tsx
View file @
4a4ecfbc
...
...
@@ -19,6 +19,7 @@ import appConfig from 'configs/app/config';
import
useApiFetch
from
'
lib/api/useApiFetch
'
;
import
shortenString
from
'
lib/shortenString
'
;
import
CopyToClipboard
from
'
ui/shared/CopyToClipboard
'
;
import
AdminSupportText
from
'
ui/shared/texts/AdminSupportText
'
;
import
AddressVerificationFieldMessage
from
'
../fields/AddressVerificationFieldMessage
'
;
import
AddressVerificationFieldSignature
from
'
../fields/AddressVerificationFieldSignature
'
;
...
...
@@ -215,10 +216,7 @@ const AddressVerificationStepSignature = ({ address, signingMessage, contractCre
</
Flex
>
<
Flex
alignItems=
"center"
mt=
{
8
}
columnGap=
{
5
}
>
{
button
}
<
Box
>
<
span
>
Contact
</
span
>
<
Link
href=
"mailto:help@blockscout.com"
>
help@blockscout.com
</
Link
>
</
Box
>
<
AdminSupportText
/>
</
Flex
>
</
form
>
);
...
...
ui/pages/VerifiedAddresses.tsx
View file @
4a4ecfbc
...
...
@@ -16,6 +16,7 @@ import Page from 'ui/shared/Page/Page';
import
PageTitle
from
'
ui/shared/Page/PageTitle
'
;
import
SkeletonListAccount
from
'
ui/shared/skeletons/SkeletonListAccount
'
;
import
SkeletonTable
from
'
ui/shared/skeletons/SkeletonTable
'
;
import
AdminSupportText
from
'
ui/shared/texts/AdminSupportText
'
;
import
TokenInfoForm
from
'
ui/tokenInfo/TokenInfoForm
'
;
import
VerifiedAddressesListItem
from
'
ui/verifiedAddresses/VerifiedAddressesListItem
'
;
import
VerifiedAddressesTable
from
'
ui/verifiedAddresses/VerifiedAddressesTable
'
;
...
...
@@ -177,16 +178,16 @@ const VerifiedAddresses = () => {
</
chakra
.
p
>
<
OrderedList
ml=
{
6
}
>
<
ListItem
>
The source code for the smart contract is deployed on “
{
appConfig
.
network
.
name
}
”.
</
ListItem
>
<
ListItem
>
The source code is verified (if not yet verified, you can use this tool).
</
ListItem
>
<
ListItem
>
<
span
>
The source code is verified (if not yet verified, you can use
</
span
>
<
Link
href=
"https://docs.blockscout.com/for-users/verifying-a-smart-contract"
target=
"_blank"
>
this tool
</
Link
>
<
span
>
).
</
span
>
</
ListItem
>
</
OrderedList
>
<
chakra
.
div
mt=
{
5
}
>
Once these steps are complete, click the Add address button below to get started.
</
chakra
.
div
>
<
chakra
.
div
>
<
span
>
Need help? Contact admin team at
</
span
>
<
Link
href=
"mailto:help@blockscout.com"
>
help@blockscout.com
</
Link
>
<
span
>
for assistance!
</
span
>
</
chakra
.
div
>
<
AdminSupportText
mt=
{
5
}
/>
</
AccountPageDescription
>
<
DataListDisplay
isLoading=
{
addressesQuery
.
isLoading
||
applicationsQuery
.
isLoading
}
...
...
ui/shared/texts/AdminSupportText.tsx
0 → 100644
View file @
4a4ecfbc
import
{
Box
,
Link
,
chakra
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
interface
Props
{
className
?:
string
;
}
const
AdminSupportText
=
({
className
}:
Props
)
=>
{
return
(
<
Box
className=
{
className
}
>
<
span
>
Need help? Contact admin team at
</
span
>
<
Link
href=
"mailto:help@blockscout.com"
>
help@blockscout.com
</
Link
>
<
span
>
for assistance!
</
span
>
</
Box
>
);
};
export
default
chakra
(
AdminSupportText
);
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