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
473f0ead
Commit
473f0ead
authored
Jul 11, 2022
by
tom
Committed by
isstuev
Jul 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
model dark mode styling
parent
afaf9b53
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
59 additions
and
37 deletions
+59
-37
Modal.ts
theme/components/Modal.ts
+57
-35
AddressForm.tsx
ui/watchlist/AddressModal/AddressForm.tsx
+2
-2
No files found.
theme/components/Modal.ts
View file @
473f0ead
import
{
modalAnatomy
as
parts
}
from
'
@chakra-ui/anatomy
'
import
type
{
PartsStyleFunction
,
SystemStyleFunction
}
from
'
@chakra-ui/theme-tools
'
import
{
mode
}
from
'
@chakra-ui/theme-tools
'
import
type
{
ComponentMultiStyleConfig
}
from
'
@chakra-ui/theme
'
;
import
type
{
ComponentMultiStyleConfig
}
from
'
@chakra-ui/theme
'
;
const
Modal
:
ComponentMultiStyleConfig
=
{
const
baseStyleDialog
:
SystemStyleFunction
=
(
props
)
=>
{
parts
:
[
],
return
{
sizes
:
{
md
:
{
dialog
:
{
maxW
:
'
760px
'
,
},
},
},
baseStyle
:
{
dialog
:
{
padding
:
8
,
padding
:
8
,
borderRadius
:
'
lg
'
,
borderRadius
:
'
lg
'
,
},
bg
:
mode
(
'
white
'
,
'
gray.800
'
)(
props
),
header
:
{
}
}
const
baseStyleHeader
=
{
padding
:
0
,
padding
:
0
,
marginBottom
:
8
,
marginBottom
:
8
,
fontSize
:
'
2xl
'
,
fontSize
:
'
2xl
'
,
lineHeight
:
10
,
lineHeight
:
10
,
},
}
body
:
{
const
baseStyleBody
=
{
padding
:
0
,
padding
:
0
,
marginBottom
:
8
,
marginBottom
:
8
,
},
}
footer
:
{
const
baseStyleFooter
=
{
padding
:
0
,
padding
:
0
,
justifyContent
:
'
flex-start
'
,
justifyContent
:
'
flex-start
'
,
},
}
closeButton
:
{
const
baseStyleCloseButton
:
SystemStyleFunction
=
(
props
)
=>
{
return
{
top
:
8
,
top
:
8
,
right
:
8
,
right
:
8
,
height
:
10
,
height
:
10
,
width
:
10
,
width
:
10
,
color
:
'
gray.700
'
,
color
:
mode
(
'
gray.700
'
,
'
gray.600
'
)(
props
)
,
_hover
:
{
color
:
'
blue.400
'
},
_hover
:
{
color
:
'
blue.400
'
},
_active
:
{
bg
:
'
none
'
},
_active
:
{
bg
:
'
none
'
},
}
}
const
baseStyle
:
PartsStyleFunction
<
typeof
parts
>
=
(
props
)
=>
({
dialog
:
baseStyleDialog
(
props
),
header
:
baseStyleHeader
,
body
:
baseStyleBody
,
footer
:
baseStyleFooter
,
closeButton
:
baseStyleCloseButton
(
props
),
})
const
sizes
=
{
md
:
{
dialog
:
{
maxW
:
'
760px
'
,
},
},
},
},
}
}
const
Modal
:
ComponentMultiStyleConfig
=
{
parts
:
parts
.
keys
,
sizes
,
baseStyle
,
}
export
default
Modal
;
export
default
Modal
;
ui/watchlist/AddressModal/AddressForm.tsx
View file @
473f0ead
...
@@ -93,11 +93,11 @@ const AddressModal: React.FC<Props> = ({ data }) => {
...
@@ -93,11 +93,11 @@ const AddressModal: React.FC<Props> = ({ data }) => {
<
Grid
templateColumns=
"repeat(3, max-content)"
gap=
"20px 24px"
>
<
Grid
templateColumns=
"repeat(3, max-content)"
gap=
"20px 24px"
>
{
NOTIFICATIONS
.
map
((
notification
:
string
)
=>
{
{
NOTIFICATIONS
.
map
((
notification
:
string
)
=>
{
return
(
return
(
<>
<
React
.
Fragment
key=
{
notification
}
>
<
GridItem
>
{
notification
}
</
GridItem
>
<
GridItem
>
{
notification
}
</
GridItem
>
<
GridItem
><
Checkbox
colorScheme=
"blue"
size=
"lg"
>
Incoming
</
Checkbox
></
GridItem
>
<
GridItem
><
Checkbox
colorScheme=
"blue"
size=
"lg"
>
Incoming
</
Checkbox
></
GridItem
>
<
GridItem
><
Checkbox
colorScheme=
"blue"
size=
"lg"
>
Outgoing
</
Checkbox
></
GridItem
>
<
GridItem
><
Checkbox
colorScheme=
"blue"
size=
"lg"
>
Outgoing
</
Checkbox
></
GridItem
>
</>
</
React
.
Fragment
>
)
)
})
}
})
}
</
Grid
>
</
Grid
>
...
...
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