Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
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
LuckySwap
interface
Commits
a9200b2c
Unverified
Commit
a9200b2c
authored
Nov 23, 2022
by
Mike Grabowski
Committed by
GitHub
Nov 23, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: fix invalid css color prop on text components (#5388)
* chore: fix * chore: fix snapshot tests
parent
209fd337
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
index.test.tsx.snap
...earchModal/CurrencyList/__snapshots__/index.test.tsx.snap
+3
-3
text.tsx
src/theme/components/text.tsx
+3
-1
No files found.
src/components/SearchModal/CurrencyList/__snapshots__/index.test.tsx.snap
View file @
a9200b2c
...
@@ -171,7 +171,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] =
...
@@ -171,7 +171,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] =
</div>
</div>
</div>
</div>
<div
<div
class="c10 css-
1j6a53a
"
class="c10 css-
yfjwjl
"
>
>
DAI
DAI
</div>
</div>
...
@@ -246,7 +246,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] =
...
@@ -246,7 +246,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] =
</div>
</div>
</div>
</div>
<div
<div
class="c10 css-
1j6a53a
"
class="c10 css-
yfjwjl
"
>
>
USDC
USDC
</div>
</div>
...
@@ -321,7 +321,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] =
...
@@ -321,7 +321,7 @@ exports[`renders currency rows correctly when currencies list is non-empty 1`] =
</div>
</div>
</div>
</div>
<div
<div
class="c10 css-
1j6a53a
"
class="c10 css-
yfjwjl
"
>
>
WBTC
WBTC
</div>
</div>
...
...
src/theme/components/text.tsx
View file @
a9200b2c
...
@@ -5,7 +5,9 @@
...
@@ -5,7 +5,9 @@
import
{
Text
,
TextProps
as
TextPropsOriginal
}
from
'
rebass
'
import
{
Text
,
TextProps
as
TextPropsOriginal
}
from
'
rebass
'
import
styled
from
'
styled-components/macro
'
import
styled
from
'
styled-components/macro
'
const
TextWrapper
=
styled
(
Text
)
<
{
color
:
keyof
string
}
>
`
const
TextWrapper
=
styled
(
Text
).
withConfig
({
shouldForwardProp
:
(
prop
)
=>
prop
!==
'
color
'
,
})
<
{
color
:
keyof
string
}
>
`
color:
${({
color
,
theme
})
=>
(
theme
as
any
)[
color
]}
;
color:
${({
color
,
theme
})
=>
(
theme
as
any
)[
color
]}
;
`
`
...
...
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