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
1809cd02
Commit
1809cd02
authored
Aug 20, 2022
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apikey and watchlist fixes
parent
e830a617
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
21 deletions
+23
-21
ApiKeys.tsx
ui/pages/ApiKeys.tsx
+8
-6
Watchlist.tsx
ui/pages/Watchlist.tsx
+15
-15
No files found.
ui/pages/ApiKeys.tsx
View file @
1809cd02
...
@@ -62,12 +62,14 @@ const ApiKeysPage: React.FC = () => {
...
@@ -62,12 +62,14 @@ const ApiKeysPage: React.FC = () => {
const
canAdd
=
data
.
length
<
DATA_LIMIT
;
const
canAdd
=
data
.
length
<
DATA_LIMIT
;
return
(
return
(
<>
<>
{
Boolean
(
data
.
length
)
&&
(
<
ApiKeyTable
<
ApiKeyTable
data=
{
data
}
data=
{
data
}
onDeleteClick=
{
onDeleteClick
}
onDeleteClick=
{
onDeleteClick
}
onEditClick=
{
onEditClick
}
onEditClick=
{
onEditClick
}
limit=
{
DATA_LIMIT
}
limit=
{
DATA_LIMIT
}
/>
/>
)
}
<
HStack
marginTop=
{
8
}
spacing=
{
5
}
>
<
HStack
marginTop=
{
8
}
spacing=
{
5
}
>
<
Button
<
Button
variant=
"primary"
variant=
"primary"
...
...
ui/pages/Watchlist.tsx
View file @
1809cd02
...
@@ -53,12 +53,13 @@ const WatchList: React.FC = () => {
...
@@ -53,12 +53,13 @@ const WatchList: React.FC = () => {
</>
</>
)
}
)
}
{
Boolean
(
watchlistData
?.
length
)
&&
(
{
Boolean
(
watchlistData
?.
length
)
&&
(
<>
<
WatchlistTable
<
WatchlistTable
data=
{
watchlistData
}
data=
{
watchlistData
}
onDeleteClick=
{
onDeleteClick
}
onDeleteClick=
{
onDeleteClick
}
onEditClick=
{
onEditClick
}
onEditClick=
{
onEditClick
}
/>
/>
)
}
{
Boolean
(
watchlistData
)
&&
(
<
Box
marginTop=
{
8
}
>
<
Box
marginTop=
{
8
}
>
<
Button
<
Button
variant=
"primary"
variant=
"primary"
...
@@ -68,7 +69,6 @@ const WatchList: React.FC = () => {
...
@@ -68,7 +69,6 @@ const WatchList: React.FC = () => {
Add address
Add address
</
Button
>
</
Button
>
</
Box
>
</
Box
>
</>
)
}
)
}
</
Box
>
</
Box
>
<
AddressModal
{
...
addressModalProps
}
onClose=
{
onAddressModalClose
}
data=
{
addressModalData
}
/>
<
AddressModal
{
...
addressModalProps
}
onClose=
{
onAddressModalClose
}
data=
{
addressModalData
}
/>
...
...
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