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
4955e0f3
Commit
4955e0f3
authored
Jul 09, 2022
by
tom
Committed by
isstuev
Jul 11, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
link theme
parent
8ea01744
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
8 deletions
+45
-8
Link.ts
theme/components/Link.ts
+37
-0
index.ts
theme/components/index.ts
+6
-6
NavFooter.tsx
ui/navigation/NavFooter.tsx
+1
-1
WatchListAddressItem.tsx
ui/watchlist/WatchlistTable/WatchListAddressItem.tsx
+1
-1
No files found.
theme/components/Link.ts
0 → 100644
View file @
4955e0f3
import
type
{
ComponentStyleConfig
}
from
'
@chakra-ui/theme
'
;
import
{
mode
}
from
'
@chakra-ui/theme-tools
'
;
import
type
{
SystemStyleFunction
}
from
'
@chakra-ui/theme-tools
'
;
const
variantPrimary
:
SystemStyleFunction
=
(
props
)
=>
{
return
{
color
:
mode
(
'
blue.600
'
,
'
blue.300
'
)(
props
),
_hover
:
{
color
:
mode
(
'
blue.400
'
,
'
blue.200
'
)(
props
),
},
}
}
const
variantSecondary
:
SystemStyleFunction
=
(
props
)
=>
{
return
{
color
:
mode
(
'
gray.500
'
,
'
gray.500
'
)(
props
),
_hover
:
{
color
:
mode
(
'
gray.600
'
,
'
gray.400
'
)(
props
),
},
}
}
const
variants
=
{
primary
:
variantPrimary
,
secondary
:
variantSecondary
,
}
const
defaultProps
=
{
variant
:
'
primary
'
,
}
const
Link
:
ComponentStyleConfig
=
{
variants
,
defaultProps
,
}
export
default
Link
;
theme/components/index.ts
View file @
4955e0f3
import
Button
from
'
./Button
'
;
import
Modal
from
'
./Modal
'
;
import
Table
from
'
./Table
'
;
import
Form
from
'
./Form
'
;
import
Input
from
'
./Input
'
;
import
Tabs
from
'
./Tabs
'
;
import
Link
from
'
./Link
'
;
import
Modal
from
'
./Modal
'
;
import
Table
from
'
./Table
'
;
import
Tag
from
'
./Tag
'
;
import
Tooltip
from
'
./Tooltip
'
;
const
components
=
{
Button
,
Modal
,
Table
,
Input
,
Form
,
Tabs
,
Link
,
Modal
,
Table
,
Tag
,
Tooltip
,
}
...
...
ui/navigation/NavFooter.tsx
View file @
4955e0f3
...
...
@@ -30,7 +30,7 @@ const NavFooter = () => {
<
HStack
>
{
SOCIAL_LINKS
.
map
(
sl
=>
{
return
(
<
Link
href=
{
sl
.
link
}
key=
{
sl
.
link
}
>
<
Link
href=
{
sl
.
link
}
key=
{
sl
.
link
}
variant=
"secondary"
>
<
Icon
as=
{
sl
.
icon
}
boxSize=
{
5
}
/>
</
Link
>
)
...
...
ui/watchlist/WatchlistTable/WatchListAddressItem.tsx
View file @
4955e0f3
...
...
@@ -33,7 +33,7 @@ const WatchListAddressItem = ({ item }: {item: TWatchlistItem}) => {
<
HStack
spacing=
{
0
}
fontSize=
"sm"
h=
{
6
}
>
<
Icon
as=
{
WalletIcon
}
marginRight=
"10px"
w=
"16px"
h=
"16px"
/>
<
Text
>
{
`Net worth:${ nbsp }`
}
</
Text
>
<
Link
href=
"#"
color=
"blue.500"
_hover=
{
{
color
:
'
blue.400
'
}
}
>
{
`$${ item.totalUSD } USD`
}
</
Link
>
<
Link
href=
"#"
>
{
`$${ item.totalUSD } USD`
}
</
Link
>
</
HStack
>
)
}
</
VStack
>
...
...
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