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
3950aae6
Commit
3950aae6
authored
Aug 20, 2022
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more colors for dark mode fixes
parent
67ae1a21
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
12 additions
and
11 deletions
+12
-11
Table.ts
theme/components/Table.ts
+1
-1
getOutlinedFieldStyles.ts
theme/utils/getOutlinedFieldStyles.ts
+4
-4
ApiKeyForm.tsx
ui/apiKey/ApiKeyModal/ApiKeyForm.tsx
+1
-1
CustomAbiForm.tsx
ui/customAbi/CustomAbiModal/CustomAbiForm.tsx
+1
-1
SearchBar.tsx
ui/header/SearchBar.tsx
+1
-0
NetworkMenu.tsx
ui/navigation/networkMenu/NetworkMenu.tsx
+1
-1
AddressForm.tsx
ui/privateTags/AddressModal/AddressForm.tsx
+1
-1
TransactionForm.tsx
ui/privateTags/TransactionModal/TransactionForm.tsx
+1
-1
AddressForm.tsx
ui/watchlist/AddressModal/AddressForm.tsx
+1
-1
No files found.
theme/components/Table.ts
View file @
3950aae6
...
@@ -11,7 +11,7 @@ const variantSimple: PartsStyleFunction<typeof parts> = (props) => {
...
@@ -11,7 +11,7 @@ const variantSimple: PartsStyleFunction<typeof parts> = (props) => {
return
{
return
{
th
:
{
th
:
{
border
:
0
,
border
:
0
,
color
:
mode
(
'
gray.600
'
,
'
gray.5
0
'
)(
props
),
color
:
mode
(
'
gray.600
'
,
'
whiteAlpha.70
0
'
)(
props
),
...
transitionProps
,
...
transitionProps
,
},
},
thead
:
{
thead
:
{
...
...
theme/utils/getOutlinedFieldStyles.ts
View file @
3950aae6
...
@@ -5,14 +5,14 @@ import getDefaultFormColors from './getDefaultFormColors';
...
@@ -5,14 +5,14 @@ import getDefaultFormColors from './getDefaultFormColors';
import
getDefaultTransitionProps
from
'
./getDefaultTransitionProps
'
;
import
getDefaultTransitionProps
from
'
./getDefaultTransitionProps
'
;
export
default
function
getOutlinedFieldStyles
(
props
:
StyleFunctionProps
)
{
export
default
function
getOutlinedFieldStyles
(
props
:
StyleFunctionProps
)
{
const
{
theme
}
=
props
;
const
{
theme
,
borderColor
}
=
props
;
const
{
focusColor
:
fc
,
errorColor
:
ec
}
=
getDefaultFormColors
(
props
);
const
{
focusColor
:
fc
,
errorColor
:
ec
}
=
getDefaultFormColors
(
props
);
const
transitionProps
=
getDefaultTransitionProps
();
const
transitionProps
=
getDefaultTransitionProps
();
return
{
return
{
border
:
'
2px solid
'
,
border
:
'
2px solid
'
,
bg
:
'
inherit
'
,
// filled input
// filled input
backgroundColor
:
'
transparent
'
,
borderColor
:
mode
(
'
gray.300
'
,
'
gray.600
'
)(
props
),
borderColor
:
mode
(
'
gray.300
'
,
'
gray.600
'
)(
props
),
...
transitionProps
,
...
transitionProps
,
_hover
:
{
_hover
:
{
...
@@ -24,7 +24,7 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) {
...
@@ -24,7 +24,7 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) {
},
},
_disabled
:
{
_disabled
:
{
opacity
:
1
,
opacity
:
1
,
background
:
mode
(
'
gray.200
'
,
'
whiteAlpha.4
00
'
)(
props
),
background
Color
:
mode
(
'
gray.200
'
,
'
whiteAlpha.2
00
'
)(
props
),
border
:
'
none
'
,
border
:
'
none
'
,
cursor
:
'
not-allowed
'
,
cursor
:
'
not-allowed
'
,
},
},
...
@@ -41,7 +41,7 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) {
...
@@ -41,7 +41,7 @@ export default function getOutlinedFieldStyles(props: StyleFunctionProps) {
color
:
mode
(
'
blackAlpha.600
'
,
'
whiteAlpha.600
'
)(
props
),
color
:
mode
(
'
blackAlpha.600
'
,
'
whiteAlpha.600
'
)(
props
),
},
},
// not filled input
// not filled input
'
:placeholder-shown:not(:focus-visible):not(:hover)
'
:
{
borderColor
:
mode
(
'
gray.100
'
,
'
gray.700
'
)(
props
)
},
'
:placeholder-shown:not(:focus-visible):not(:hover)
'
:
{
borderColor
:
borderColor
||
mode
(
'
gray.100
'
,
'
gray.700
'
)(
props
)
},
'
:-webkit-autofill
'
:
{
transition
:
'
background-color 5000s ease-in-out 0s
'
},
'
:-webkit-autofill
'
:
{
transition
:
'
background-color 5000s ease-in-out 0s
'
},
'
:-webkit-autofill:hover
'
:
{
transition
:
'
background-color 5000s ease-in-out 0s
'
},
'
:-webkit-autofill:hover
'
:
{
transition
:
'
background-color 5000s ease-in-out 0s
'
},
'
:-webkit-autofill:focus
'
:
{
transition
:
'
background-color 5000s ease-in-out 0s
'
},
'
:-webkit-autofill:focus
'
:
{
transition
:
'
background-color 5000s ease-in-out 0s
'
},
...
...
ui/apiKey/ApiKeyModal/ApiKeyForm.tsx
View file @
3950aae6
...
@@ -29,7 +29,7 @@ const NAME_MAX_LENGTH = 100;
...
@@ -29,7 +29,7 @@ const NAME_MAX_LENGTH = 100;
const
ApiKeyForm
:
React
.
FC
<
Props
>
=
({
data
,
onClose
})
=>
{
const
ApiKeyForm
:
React
.
FC
<
Props
>
=
({
data
,
onClose
})
=>
{
const
{
control
,
handleSubmit
,
formState
:
{
errors
},
setValue
}
=
useForm
<
Inputs
>
();
const
{
control
,
handleSubmit
,
formState
:
{
errors
},
setValue
}
=
useForm
<
Inputs
>
();
const
queryClient
=
useQueryClient
();
const
queryClient
=
useQueryClient
();
const
formBackgroundColor
=
useColorModeValue
(
'
white
'
,
'
gray.
8
00
'
);
const
formBackgroundColor
=
useColorModeValue
(
'
white
'
,
'
gray.
9
00
'
);
useEffect
(()
=>
{
useEffect
(()
=>
{
setValue
(
'
token
'
,
data
?.
api_key
||
''
);
setValue
(
'
token
'
,
data
?.
api_key
||
''
);
...
...
ui/customAbi/CustomAbiModal/CustomAbiForm.tsx
View file @
3950aae6
...
@@ -48,7 +48,7 @@ const CustomAbiForm: React.FC<Props> = ({ data, onClose }) => {
...
@@ -48,7 +48,7 @@ const CustomAbiForm: React.FC<Props> = ({ data, onClose }) => {
return
fetch
(
`/api/account/custom-abis/
${
data
.
id
}
`
,
{
method
:
'
PUT
'
,
body
});
return
fetch
(
`/api/account/custom-abis/
${
data
.
id
}
`
,
{
method
:
'
PUT
'
,
body
});
};
};
const
formBackgroundColor
=
useColorModeValue
(
'
white
'
,
'
gray.
8
00
'
);
const
formBackgroundColor
=
useColorModeValue
(
'
white
'
,
'
gray.
9
00
'
);
const
mutation
=
useMutation
(
customAbiKey
,
{
const
mutation
=
useMutation
(
customAbiKey
,
{
onSuccess
:
async
(
data
)
=>
{
onSuccess
:
async
(
data
)
=>
{
...
...
ui/header/SearchBar.tsx
View file @
3950aae6
...
@@ -30,6 +30,7 @@ const SearchBar = () => {
...
@@ -30,6 +30,7 @@ const SearchBar = () => {
placeholder=
"Search by addresses / transactions / block / token... "
placeholder=
"Search by addresses / transactions / block / token... "
ml=
"1px"
ml=
"1px"
onChange=
{
handleChange
}
onChange=
{
handleChange
}
borderColor=
{
useColorModeValue
(
'
blackAlpha.100
'
,
'
whiteAlpha.200
'
)
}
/>
/>
</
InputGroup
>
</
InputGroup
>
</
form
>
</
form
>
...
...
ui/navigation/networkMenu/NetworkMenu.tsx
View file @
3950aae6
...
@@ -19,7 +19,7 @@ const NetworkMenu = ({ isCollapsed }: Props) => {
...
@@ -19,7 +19,7 @@ const NetworkMenu = ({ isCollapsed }: Props) => {
as=
{
networksIcon
}
as=
{
networksIcon
}
width=
"16px"
width=
"16px"
height=
"16px"
height=
"16px"
color=
{
useColorModeValue
(
'
gray.500
'
,
'
white
'
)
}
color=
{
useColorModeValue
(
'
gray.500
'
,
'
gray.400
'
)
}
_hover=
{
{
color
:
'
blue.400
'
}
}
_hover=
{
{
color
:
'
blue.400
'
}
}
marginLeft=
{
isCollapsed
?
'
0px
'
:
'
27px
'
}
marginLeft=
{
isCollapsed
?
'
0px
'
:
'
27px
'
}
cursor=
"pointer"
cursor=
"pointer"
...
...
ui/privateTags/AddressModal/AddressForm.tsx
View file @
3950aae6
...
@@ -29,7 +29,7 @@ type Inputs = {
...
@@ -29,7 +29,7 @@ type Inputs = {
const
AddressForm
:
React
.
FC
<
Props
>
=
({
data
,
onClose
})
=>
{
const
AddressForm
:
React
.
FC
<
Props
>
=
({
data
,
onClose
})
=>
{
const
[
pending
,
setPending
]
=
useState
(
false
);
const
[
pending
,
setPending
]
=
useState
(
false
);
const
{
control
,
handleSubmit
,
formState
:
{
errors
},
setValue
}
=
useForm
<
Inputs
>
();
const
{
control
,
handleSubmit
,
formState
:
{
errors
},
setValue
}
=
useForm
<
Inputs
>
();
const
formBackgroundColor
=
useColorModeValue
(
'
white
'
,
'
gray.
8
00
'
);
const
formBackgroundColor
=
useColorModeValue
(
'
white
'
,
'
gray.
9
00
'
);
useEffect
(()
=>
{
useEffect
(()
=>
{
setValue
(
'
address
'
,
data
?.
address_hash
||
''
);
setValue
(
'
address
'
,
data
?.
address_hash
||
''
);
...
...
ui/privateTags/TransactionModal/TransactionForm.tsx
View file @
3950aae6
...
@@ -29,7 +29,7 @@ type Inputs = {
...
@@ -29,7 +29,7 @@ type Inputs = {
const
TransactionForm
:
React
.
FC
<
Props
>
=
({
data
,
onClose
})
=>
{
const
TransactionForm
:
React
.
FC
<
Props
>
=
({
data
,
onClose
})
=>
{
const
[
pending
,
setPending
]
=
useState
(
false
);
const
[
pending
,
setPending
]
=
useState
(
false
);
const
{
control
,
handleSubmit
,
formState
:
{
errors
},
setValue
}
=
useForm
<
Inputs
>
();
const
{
control
,
handleSubmit
,
formState
:
{
errors
},
setValue
}
=
useForm
<
Inputs
>
();
const
formBackgroundColor
=
useColorModeValue
(
'
white
'
,
'
gray.
8
00
'
);
const
formBackgroundColor
=
useColorModeValue
(
'
white
'
,
'
gray.
9
00
'
);
useEffect
(()
=>
{
useEffect
(()
=>
{
setValue
(
'
transaction
'
,
data
?.
transaction_hash
||
''
);
setValue
(
'
transaction
'
,
data
?.
transaction_hash
||
''
);
...
...
ui/watchlist/AddressModal/AddressForm.tsx
View file @
3950aae6
...
@@ -31,7 +31,7 @@ type Inputs = {
...
@@ -31,7 +31,7 @@ type Inputs = {
const
AddressForm
:
React
.
FC
<
Props
>
=
({
data
})
=>
{
const
AddressForm
:
React
.
FC
<
Props
>
=
({
data
})
=>
{
const
{
control
,
handleSubmit
,
formState
:
{
errors
},
setValue
}
=
useForm
<
Inputs
>
();
const
{
control
,
handleSubmit
,
formState
:
{
errors
},
setValue
}
=
useForm
<
Inputs
>
();
const
formBackgroundColor
=
useColorModeValue
(
'
white
'
,
'
gray.
8
00
'
);
const
formBackgroundColor
=
useColorModeValue
(
'
white
'
,
'
gray.
9
00
'
);
useEffect
(()
=>
{
useEffect
(()
=>
{
setValue
(
'
address
'
,
data
?.
address
||
''
);
setValue
(
'
address
'
,
data
?.
address
||
''
);
...
...
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