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
480f3f29
Unverified
Commit
480f3f29
authored
Dec 08, 2022
by
Vignesh Mohankumar
Committed by
GitHub
Dec 08, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: handle light mode image in About step (#5601)
parent
5f2072f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
constants.ts
src/pages/About/constants.ts
+4
-2
index.tsx
src/pages/About/index.tsx
+3
-1
No files found.
src/pages/About/constants.ts
View file @
480f3f29
...
@@ -29,11 +29,13 @@ export const STEPS = [
...
@@ -29,11 +29,13 @@ export const STEPS = [
{
{
title
:
'
Connect a wallet
'
,
title
:
'
Connect a wallet
'
,
description
:
'
Connect your preferred crypto wallet to the Uniswap Interface.
'
,
description
:
'
Connect your preferred crypto wallet to the Uniswap Interface.
'
,
imgSrc
:
walletsSrc
,
lightImgSrc
:
walletsSrc
,
darkImgSrc
:
walletsSrc
,
},
},
{
{
title
:
'
Swap!
'
,
title
:
'
Swap!
'
,
description
:
'
Trade crypto and NFTs through Uniswap’s platform
'
,
description
:
'
Trade crypto and NFTs through Uniswap’s platform
'
,
imgSrc
:
swapSrc
,
lightImgSrc
:
swapSrc
,
darkImgSrc
:
swapSrc
,
},
},
]
]
src/pages/About/index.tsx
View file @
480f3f29
...
@@ -131,6 +131,8 @@ export default function About() {
...
@@ -131,6 +131,8 @@ export default function About() {
},
[])
},
[])
const
[
selectedStepIndex
,
setSelectedStepIndex
]
=
useState
(
0
)
const
[
selectedStepIndex
,
setSelectedStepIndex
]
=
useState
(
0
)
const
selectedStep
=
STEPS
[
selectedStepIndex
]
const
thumbnailImgSrc
=
isDarkMode
?
selectedStep
?.
darkImgSrc
:
selectedStep
?.
lightImgSrc
return
(
return
(
<
Page
isDarkMode=
{
isDarkMode
}
titleHeight=
{
titleHeight
}
>
<
Page
isDarkMode=
{
isDarkMode
}
titleHeight=
{
titleHeight
}
>
...
@@ -166,7 +168,7 @@ export default function About() {
...
@@ -166,7 +168,7 @@ export default function About() {
<
SubTitle
isDarkMode=
{
isDarkMode
}
>
Get Started
</
SubTitle
>
<
SubTitle
isDarkMode=
{
isDarkMode
}
>
Get Started
</
SubTitle
>
<
Panels
>
<
Panels
>
<
ThumbnailContainer
>
<
ThumbnailContainer
>
<
Thumbnail
alt=
"Thumbnail"
src=
{
STEPS
[
selectedStepIndex
]?.
i
mgSrc
}
/>
<
Thumbnail
alt=
"Thumbnail"
src=
{
thumbnailI
mgSrc
}
/>
</
ThumbnailContainer
>
</
ThumbnailContainer
>
<
StepList
>
<
StepList
>
{
STEPS
.
map
((
step
,
index
)
=>
(
{
STEPS
.
map
((
step
,
index
)
=>
(
...
...
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