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
651d9ce6
Commit
651d9ce6
authored
Aug 15, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
review fixes
parent
2888bbbd
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
16 deletions
+23
-16
ApiKeys.tsx
ui/pages/ApiKeys.tsx
+4
-5
PrivateAddressTags.tsx
ui/privateTags/PrivateAddressTags.tsx
+9
-5
PrivateTransactionTags.tsx
ui/privateTags/PrivateTransactionTags.tsx
+9
-5
SkeletonTable.tsx
ui/shared/SkeletonTable.tsx
+1
-1
No files found.
ui/pages/ApiKeys.tsx
View file @
651d9ce6
...
...
@@ -57,7 +57,6 @@ const ApiKeysPage: React.FC = () => {
if
(
isLoading
||
isError
)
{
return
(
<>
<
Skeleton
height=
{
6
}
width=
"250px"
borderRadius=
"full"
marginBottom=
{
12
}
/>
<
SkeletonTable
columns=
{
[
'
100%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
</>
...
...
@@ -67,10 +66,6 @@ const ApiKeysPage: React.FC = () => {
const
canAdd
=
data
.
length
<
DATA_LIMIT
;
return
(
<>
<
Text
marginBottom=
{
12
}
>
Create API keys to use for your RPC and EthRPC API requests. For more information, see
{
space
}
<
Link
href=
"#"
>
“How to use a Blockscout API key”
</
Link
>
.
</
Text
>
<
ApiKeyTable
data=
{
data
}
onDeleteClick=
{
onDeleteClick
}
...
...
@@ -100,6 +95,10 @@ const ApiKeysPage: React.FC = () => {
<
Page
>
<
Box
h=
"100%"
>
<
AccountPageHeader
text=
"API keys"
/>
<
Text
marginBottom=
{
12
}
>
Create API keys to use for your RPC and EthRPC API requests. For more information, see
{
space
}
<
Link
href=
"#"
>
“How to use a Blockscout API key”
</
Link
>
.
</
Text
>
{
content
}
</
Box
>
<
ApiKeyModal
{
...
apiKeyModalProps
}
onClose=
{
onApiKeyModalClose
}
data=
{
apiKeyModalData
}
/>
...
...
ui/privateTags/PrivateAddressTags.tsx
View file @
651d9ce6
...
...
@@ -40,10 +40,17 @@ const PrivateAddressTags = ({ addressTags }: Props) => {
deleteModalProps
.
onClose
();
},
[
deleteModalProps
]);
const
description
=
(
<
Text
marginBottom=
{
12
}
>
Use private transaction tags to label any transactions of interest.
Private tags are saved in your account and are only visible when you are logged in.
</
Text
>
);
if
(
!
addressTags
)
{
return
(
<>
<
Skeleton
height=
{
6
}
width=
"250px"
borderRadius=
"full"
marginBottom=
{
12
}
/>
{
description
}
<
SkeletonTable
columns=
{
[
'
60%
'
,
'
40%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
</>
...
...
@@ -52,10 +59,7 @@ const PrivateAddressTags = ({ addressTags }: Props) => {
return
(
<>
<
Text
marginBottom=
{
12
}
>
Use private transaction tags to label any transactions of interest.
Private tags are saved in your account and are only visible when you are logged in.
</
Text
>
{
description
}
{
Boolean
(
addressTags
?.
length
)
&&
(
<
AddressTagTable
data=
{
addressTags
}
...
...
ui/privateTags/PrivateTransactionTags.tsx
View file @
651d9ce6
...
...
@@ -40,10 +40,17 @@ const PrivateTransactionTags = ({ transactionTags }: Props) => {
deleteModalProps
.
onClose
();
},
[
deleteModalProps
]);
const
description
=
(
<
Text
marginBottom=
{
12
}
>
Use private transaction tags to label any transactions of interest.
Private tags are saved in your account and are only visible when you are logged in.
</
Text
>
);
if
(
!
transactionTags
)
{
return
(
<>
<
Skeleton
height=
{
6
}
width=
"250px"
borderRadius=
"full"
marginBottom=
{
12
}
/>
{
description
}
<
SkeletonTable
columns=
{
[
'
75%
'
,
'
25%
'
,
'
108px
'
]
}
/>
<
Skeleton
height=
"44px"
width=
"156px"
marginTop=
{
8
}
/>
</>
...
...
@@ -52,10 +59,7 @@ const PrivateTransactionTags = ({ transactionTags }: Props) => {
return
(
<>
<
Text
marginBottom=
{
12
}
>
Use private transaction tags to label any transactions of interest.
Private tags are saved in your account and are only visible when you are logged in.
</
Text
>
{
description
}
{
Boolean
(
transactionTags
.
length
)
&&
(
<
TransactionTagTable
data=
{
transactionTags
}
...
...
ui/shared/SkeletonTable.tsx
View file @
651d9ce6
...
...
@@ -9,7 +9,7 @@ const SkeletonTable = ({ columns }: Props) => {
return
(
<
div
>
<
Skeleton
height=
{
10
}
width=
"100%"
borderBottomLeftRadius=
"none"
borderBottomRightRadius=
"none"
/>
{
Array
.
from
(
Array
(
4
)).
map
((
item
,
index
)
=>
(
{
Array
.
from
(
Array
(
3
)).
map
((
item
,
index
)
=>
(
<
HStack
key=
{
index
}
spacing=
{
6
}
marginTop=
{
8
}
>
{
columns
.
map
((
width
,
index
)
=>
(
<
Skeleton
...
...
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