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
2b5fe6f2
Commit
2b5fe6f2
authored
Mar 06, 2023
by
isstuev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disabled prop -> isDisabled
parent
da89aef3
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
15 additions
and
15 deletions
+15
-15
Button.pw.tsx
theme/components/Button/Button.pw.tsx
+1
-1
ApiKeyForm.tsx
ui/apiKey/ApiKeyModal/ApiKeyForm.tsx
+2
-2
CustomAbiForm.tsx
ui/customAbi/CustomAbiModal/CustomAbiForm.tsx
+1
-1
ApiKeys.tsx
ui/pages/ApiKeys.tsx
+1
-1
AddressForm.tsx
ui/privateTags/AddressModal/AddressForm.tsx
+1
-1
TransactionForm.tsx
ui/privateTags/TransactionModal/TransactionForm.tsx
+1
-1
PublicTagsForm.tsx
ui/publicTags/PublicTagsForm/PublicTagsForm.tsx
+1
-1
DeleteModal.tsx
ui/shared/DeleteModal.tsx
+1
-1
Pagination.tsx
ui/shared/Pagination.tsx
+3
-3
PrevNext.tsx
ui/shared/PrevNext.tsx
+2
-2
AddressForm.tsx
ui/watchlist/AddressModal/AddressForm.tsx
+1
-1
No files found.
theme/components/Button/Button.pw.tsx
View file @
2b5fe6f2
...
@@ -28,7 +28,7 @@ import TestApp from 'playwright/TestApp';
...
@@ -28,7 +28,7 @@ import TestApp from 'playwright/TestApp';
test
(
'
disabled
'
,
async
({
mount
})
=>
{
test
(
'
disabled
'
,
async
({
mount
})
=>
{
const
component
=
await
mount
(
const
component
=
await
mount
(
<
TestApp
>
<
TestApp
>
<
Button
variant=
{
variant
}
colorScheme=
{
colorScheme
}
d
isabled
>
Click me
</
Button
>
<
Button
variant=
{
variant
}
colorScheme=
{
colorScheme
}
isD
isabled
>
Click me
</
Button
>
</
TestApp
>,
</
TestApp
>,
);
);
await
expect
(
component
.
locator
(
'
button
'
)).
toHaveScreenshot
();
await
expect
(
component
.
locator
(
'
button
'
)).
toHaveScreenshot
();
...
...
ui/apiKey/ApiKeyModal/ApiKeyForm.tsx
View file @
2b5fe6f2
...
@@ -101,7 +101,7 @@ const ApiKeyForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) => {
...
@@ -101,7 +101,7 @@ const ApiKeyForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) => {
<
FormControl
variant=
"floating"
id=
"address"
>
<
FormControl
variant=
"floating"
id=
"address"
>
<
Input
<
Input
{
...
field
}
{
...
field
}
d
isabled=
{
true
}
isD
isabled=
{
true
}
/>
/>
<
FormLabel
data
-
in
-
modal=
"true"
>
Auto-generated API key token
</
FormLabel
>
<
FormLabel
data
-
in
-
modal=
"true"
>
Auto-generated API key token
</
FormLabel
>
</
FormControl
>
</
FormControl
>
...
@@ -147,7 +147,7 @@ const ApiKeyForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) => {
...
@@ -147,7 +147,7 @@ const ApiKeyForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) => {
<
Button
<
Button
size=
"lg"
size=
"lg"
type=
"submit"
type=
"submit"
d
isabled=
{
!
isDirty
}
isD
isabled=
{
!
isDirty
}
isLoading=
{
mutation
.
isLoading
}
isLoading=
{
mutation
.
isLoading
}
>
>
{
data
?
'
Save
'
:
'
Generate API key
'
}
{
data
?
'
Save
'
:
'
Generate API key
'
}
...
...
ui/customAbi/CustomAbiModal/CustomAbiForm.tsx
View file @
2b5fe6f2
...
@@ -174,7 +174,7 @@ const CustomAbiForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) => {
...
@@ -174,7 +174,7 @@ const CustomAbiForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) => {
<
Button
<
Button
size=
"lg"
size=
"lg"
type=
"submit"
type=
"submit"
d
isabled=
{
!
isDirty
}
isD
isabled=
{
!
isDirty
}
isLoading=
{
mutation
.
isLoading
}
isLoading=
{
mutation
.
isLoading
}
>
>
{
data
?
'
Save
'
:
'
Create custom ABI
'
}
{
data
?
'
Save
'
:
'
Create custom ABI
'
}
...
...
ui/pages/ApiKeys.tsx
View file @
2b5fe6f2
...
@@ -113,7 +113,7 @@ const ApiKeysPage: React.FC = () => {
...
@@ -113,7 +113,7 @@ const ApiKeysPage: React.FC = () => {
<
Button
<
Button
size=
"lg"
size=
"lg"
onClick=
{
apiKeyModalProps
.
onOpen
}
onClick=
{
apiKeyModalProps
.
onOpen
}
d
isabled=
{
!
canAdd
}
isD
isabled=
{
!
canAdd
}
>
>
Add API key
Add API key
</
Button
>
</
Button
>
...
...
ui/privateTags/AddressModal/AddressForm.tsx
View file @
2b5fe6f2
...
@@ -124,7 +124,7 @@ const AddressForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) => {
...
@@ -124,7 +124,7 @@ const AddressForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) => {
<
Button
<
Button
size=
"lg"
size=
"lg"
type=
"submit"
type=
"submit"
d
isabled=
{
!
isDirty
}
isD
isabled=
{
!
isDirty
}
isLoading=
{
pending
}
isLoading=
{
pending
}
>
>
{
data
?
'
Save changes
'
:
'
Add tag
'
}
{
data
?
'
Save changes
'
:
'
Add tag
'
}
...
...
ui/privateTags/TransactionModal/TransactionForm.tsx
View file @
2b5fe6f2
...
@@ -123,7 +123,7 @@ const TransactionForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) =>
...
@@ -123,7 +123,7 @@ const TransactionForm: React.FC<Props> = ({ data, onClose, setAlertVisible }) =>
<
Button
<
Button
size=
"lg"
size=
"lg"
type=
"submit"
type=
"submit"
d
isabled=
{
!
isDirty
}
isD
isabled=
{
!
isDirty
}
isLoading=
{
pending
}
isLoading=
{
pending
}
>
>
{
data
?
'
Save changes
'
:
'
Add tag
'
}
{
data
?
'
Save changes
'
:
'
Add tag
'
}
...
...
ui/publicTags/PublicTagsForm/PublicTagsForm.tsx
View file @
2b5fe6f2
...
@@ -236,7 +236,7 @@ const PublicTagsForm = ({ changeToDataScreen, data }: Props) => {
...
@@ -236,7 +236,7 @@ const PublicTagsForm = ({ changeToDataScreen, data }: Props) => {
<
Button
<
Button
size=
"lg"
size=
"lg"
type=
"submit"
type=
"submit"
d
isabled=
{
!
isDirty
}
isD
isabled=
{
!
isDirty
}
isLoading=
{
mutation
.
isLoading
}
isLoading=
{
mutation
.
isLoading
}
>
>
Send request
Send request
...
...
ui/shared/DeleteModal.tsx
View file @
2b5fe6f2
...
@@ -72,7 +72,7 @@ const DeleteModal: React.FC<Props> = ({
...
@@ -72,7 +72,7 @@ const DeleteModal: React.FC<Props> = ({
onClick=
{
onDeleteClick
}
onClick=
{
onDeleteClick
}
isLoading=
{
mutation
.
isLoading
}
isLoading=
{
mutation
.
isLoading
}
// FIXME: chackra's button is disabled when isLoading
// FIXME: chackra's button is disabled when isLoading
d
isabled=
{
false
}
isD
isabled=
{
false
}
>
>
Delete
Delete
</
Button
>
</
Button
>
...
...
ui/shared/Pagination.tsx
View file @
2b5fe6f2
...
@@ -25,7 +25,7 @@ const Pagination = ({ page, onNextPageClick, onPrevPageClick, resetPage, hasNext
...
@@ -25,7 +25,7 @@ const Pagination = ({ page, onNextPageClick, onPrevPageClick, resetPage, hasNext
variant=
"outline"
variant=
"outline"
size=
"sm"
size=
"sm"
onClick=
{
resetPage
}
onClick=
{
resetPage
}
d
isabled=
{
page
===
1
}
isD
isabled=
{
page
===
1
}
mr=
{
4
}
mr=
{
4
}
>
>
First
First
...
@@ -38,7 +38,7 @@ const Pagination = ({ page, onNextPageClick, onPrevPageClick, resetPage, hasNext
...
@@ -38,7 +38,7 @@ const Pagination = ({ page, onNextPageClick, onPrevPageClick, resetPage, hasNext
w=
"36px"
w=
"36px"
icon=
{
<
Icon
as=
{
arrowIcon
}
w=
{
5
}
h=
{
5
}
/>
}
icon=
{
<
Icon
as=
{
arrowIcon
}
w=
{
5
}
h=
{
5
}
/>
}
mr=
{
3
}
mr=
{
3
}
d
isabled=
{
!
canGoBackwards
||
page
===
1
}
isD
isabled=
{
!
canGoBackwards
||
page
===
1
}
/>
/>
<
Button
<
Button
variant=
"outline"
variant=
"outline"
...
@@ -59,7 +59,7 @@ const Pagination = ({ page, onNextPageClick, onPrevPageClick, resetPage, hasNext
...
@@ -59,7 +59,7 @@ const Pagination = ({ page, onNextPageClick, onPrevPageClick, resetPage, hasNext
w=
"36px"
w=
"36px"
icon=
{
<
Icon
as=
{
arrowIcon
}
w=
{
5
}
h=
{
5
}
transform=
"rotate(180deg)"
/>
}
icon=
{
<
Icon
as=
{
arrowIcon
}
w=
{
5
}
h=
{
5
}
transform=
"rotate(180deg)"
/>
}
ml=
{
3
}
ml=
{
3
}
d
isabled=
{
!
hasNextPage
}
isD
isabled=
{
!
hasNextPage
}
/>
/>
{
/* not implemented yet */
}
{
/* not implemented yet */
}
{
/* <Flex alignItems="center" width="132px" ml={ 16 } display={{ base: 'none', lg: 'flex' }}>
{
/* <Flex alignItems="center" width="132px" ml={ 16 } display={{ base: 'none', lg: 'flex' }}>
...
...
ui/shared/PrevNext.tsx
View file @
2b5fe6f2
...
@@ -32,7 +32,7 @@ const PrevNext = ({ className, onClick, prevLabel, nextLabel, isPrevDisabled, is
...
@@ -32,7 +32,7 @@ const PrevNext = ({ className, onClick, prevLabel, nextLabel, isPrevDisabled, is
variant=
"subtle"
variant=
"subtle"
colorScheme=
"gray"
colorScheme=
"gray"
onClick=
{
handelPrevClick
}
onClick=
{
handelPrevClick
}
d
isabled=
{
isPrevDisabled
}
isD
isabled=
{
isPrevDisabled
}
/>
/>
</
Tooltip
>
</
Tooltip
>
<
Tooltip
label=
{
nextLabel
}
>
<
Tooltip
label=
{
nextLabel
}
>
...
@@ -45,7 +45,7 @@ const PrevNext = ({ className, onClick, prevLabel, nextLabel, isPrevDisabled, is
...
@@ -45,7 +45,7 @@ const PrevNext = ({ className, onClick, prevLabel, nextLabel, isPrevDisabled, is
colorScheme=
"gray"
colorScheme=
"gray"
ml=
"10px"
ml=
"10px"
onClick=
{
handelNextClick
}
onClick=
{
handelNextClick
}
d
isabled=
{
isNextDisabled
}
isD
isabled=
{
isNextDisabled
}
/>
/>
</
Tooltip
>
</
Tooltip
>
</
Box
>
</
Box
>
...
...
ui/watchlist/AddressModal/AddressForm.tsx
View file @
2b5fe6f2
...
@@ -192,7 +192,7 @@ const AddressForm: React.FC<Props> = ({ data, onSuccess, setAlertVisible, isAdd
...
@@ -192,7 +192,7 @@ const AddressForm: React.FC<Props> = ({ data, onSuccess, setAlertVisible, isAdd
size=
"lg"
size=
"lg"
type=
"submit"
type=
"submit"
isLoading=
{
pending
}
isLoading=
{
pending
}
d
isabled=
{
!
isDirty
}
isD
isabled=
{
!
isDirty
}
>
>
{
!
isAdd
?
'
Save changes
'
:
'
Add address
'
}
{
!
isAdd
?
'
Save changes
'
:
'
Add address
'
}
</
Button
>
</
Button
>
...
...
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