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
e04be071
Unverified
Commit
e04be071
authored
Aug 10, 2023
by
eddie
Committed by
GitHub
Aug 10, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: unknown token logo styling (#7132)
* fix: unknown token logo styling * fix: tests
parent
5c3caa71
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
3 deletions
+13
-3
AssetLogo.tsx
src/components/Logo/AssetLogo.tsx
+4
-1
TokenRow.test.tsx.snap
...ts/Tokens/TokenTable/__snapshots__/TokenRow.test.tsx.snap
+1
-0
SwapModalHeader.test.tsx.snap
...mponents/swap/__snapshots__/SwapModalHeader.test.tsx.snap
+6
-0
index.test.tsx.snap
src/pages/Landing/__snapshots__/index.test.tsx.snap
+2
-2
No files found.
src/components/Logo/AssetLogo.tsx
View file @
e04be071
...
@@ -15,6 +15,9 @@ export const MissingImageLogo = styled.div<{ size?: string }>`
...
@@ -15,6 +15,9 @@ export const MissingImageLogo = styled.div<{ size?: string }>`
line
-
height
:
$
{({
size
})
=>
size
??
'
24px
'
};
line
-
height
:
$
{({
size
})
=>
size
??
'
24px
'
};
text
-
align
:
center
;
text
-
align
:
center
;
width
:
$
{({
size
})
=>
size
??
'
24px
'
};
width
:
$
{({
size
})
=>
size
??
'
24px
'
};
display
:
flex
;
align
-
items
:
center
;
justify
-
content
:
center
;
`
`
const LogoImage = styled.img<{ size: string; imgLoaded?: boolean }>`
const LogoImage = styled.img<{ size: string; imgLoaded?: boolean }>`
...
@@ -83,7 +86,7 @@ export default function AssetLogo({
...
@@ -83,7 +86,7 @@ export default function AssetLogo({
})
})
return
(
return
(
<
LogoContainer
style=
{
style
}
>
<
LogoContainer
style=
{
{
height
:
size
,
width
:
size
,
...
style
}
}
>
{
src
?
(
{
src
?
(
<
LogoImageWrapper
size=
{
size
}
imgLoaded=
{
imgLoaded
}
>
<
LogoImageWrapper
size=
{
size
}
imgLoaded=
{
imgLoaded
}
>
<
LogoImage
<
LogoImage
...
...
src/components/Tokens/TokenTable/__snapshots__/TokenRow.test.tsx.snap
View file @
e04be071
...
@@ -362,6 +362,7 @@ exports[`LoadedRow.tsx renders a row 1`] = `
...
@@ -362,6 +362,7 @@ exports[`LoadedRow.tsx renders a row 1`] = `
>
>
<div
<div
class="c7"
class="c7"
style="height: 24px; width: 24px;"
>
>
<div
<div
class="c8"
class="c8"
...
...
src/components/swap/__snapshots__/SwapModalHeader.test.tsx.snap
View file @
e04be071
...
@@ -165,6 +165,7 @@ exports[`SwapModalHeader.tsx matches base snapshot, test trade exact input 1`] =
...
@@ -165,6 +165,7 @@ exports[`SwapModalHeader.tsx matches base snapshot, test trade exact input 1`] =
</div>
</div>
<div
<div
class="c10"
class="c10"
style="height: 36px; width: 36px;"
>
>
<div
<div
class="c11"
class="c11"
...
@@ -212,6 +213,7 @@ exports[`SwapModalHeader.tsx matches base snapshot, test trade exact input 1`] =
...
@@ -212,6 +213,7 @@ exports[`SwapModalHeader.tsx matches base snapshot, test trade exact input 1`] =
</div>
</div>
<div
<div
class="c10"
class="c10"
style="height: 36px; width: 36px;"
>
>
<div
<div
class="c11"
class="c11"
...
@@ -397,6 +399,7 @@ exports[`SwapModalHeader.tsx renders ETH input token for an ETH input UniswapX s
...
@@ -397,6 +399,7 @@ exports[`SwapModalHeader.tsx renders ETH input token for an ETH input UniswapX s
</div>
</div>
<div
<div
class="c10"
class="c10"
style="height: 36px; width: 36px;"
>
>
<div
<div
class="c11"
class="c11"
...
@@ -444,6 +447,7 @@ exports[`SwapModalHeader.tsx renders ETH input token for an ETH input UniswapX s
...
@@ -444,6 +447,7 @@ exports[`SwapModalHeader.tsx renders ETH input token for an ETH input UniswapX s
</div>
</div>
<div
<div
class="c10"
class="c10"
style="height: 36px; width: 36px;"
>
>
<div
<div
class="c11"
class="c11"
...
@@ -629,6 +633,7 @@ exports[`SwapModalHeader.tsx test trade exact output, no recipient 1`] = `
...
@@ -629,6 +633,7 @@ exports[`SwapModalHeader.tsx test trade exact output, no recipient 1`] = `
</div>
</div>
<div
<div
class="c10"
class="c10"
style="height: 36px; width: 36px;"
>
>
<div
<div
class="c11"
class="c11"
...
@@ -676,6 +681,7 @@ exports[`SwapModalHeader.tsx test trade exact output, no recipient 1`] = `
...
@@ -676,6 +681,7 @@ exports[`SwapModalHeader.tsx test trade exact output, no recipient 1`] = `
</div>
</div>
<div
<div
class="c10"
class="c10"
style="height: 36px; width: 36px;"
>
>
<div
<div
class="c11"
class="c11"
...
...
src/pages/Landing/__snapshots__/index.test.tsx.snap
View file @
e04be071
...
@@ -1833,7 +1833,7 @@ exports[`disable nft on landing page does not render nft information and card 1`
...
@@ -1833,7 +1833,7 @@ exports[`disable nft on landing page does not render nft information and card 1`
>
>
<div
<div
class="c29"
class="c29"
style="margin-right: 2px;"
style="
height: 24px; width: 24px;
margin-right: 2px;"
>
>
<div
<div
class="c30"
class="c30"
...
@@ -4407,7 +4407,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = `
...
@@ -4407,7 +4407,7 @@ exports[`disable nft on landing page renders nft information and card 1`] = `
>
>
<div
<div
class="c29"
class="c29"
style="margin-right: 2px;"
style="
height: 24px; width: 24px;
margin-right: 2px;"
>
>
<div
<div
class="c30"
class="c30"
...
...
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