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
562a386d
Unverified
Commit
562a386d
authored
Nov 07, 2022
by
lynn
Committed by
GitHub
Nov 07, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: release phase 1 nav bar (#5111)
* init * just release phase 1 nav bar * oops
parent
99bea34f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
App.tsx
src/pages/App.tsx
+5
-8
No files found.
src/pages/App.tsx
View file @
562a386d
...
@@ -65,17 +65,14 @@ const BodyWrapper = styled.div`
...
@@ -65,17 +65,14 @@ const BodyWrapper = styled.div`
`
}
;
`
}
;
`
`
const
HeaderWrapper
=
styled
.
div
<
{
scrolledState
?:
boolean
;
nftFlagEnabled
?:
boolean
}
>
`
const
HeaderWrapper
=
styled
.
div
<
{
scrolledState
?:
boolean
}
>
`
${({
theme
})
=>
theme
.
flexRowNoWrap
}
${({
theme
})
=>
theme
.
flexRowNoWrap
}
background-color:
${({
theme
,
nftFlagEnabled
,
scrolledState
})
=>
background-color:
${({
theme
,
scrolledState
})
=>
scrolledState
&&
theme
.
backgroundSurface
}
;
scrolledState
&&
nftFlagEnabled
&&
theme
.
backgroundSurface
}
;
border-bottom:
${({
theme
,
scrolledState
})
=>
scrolledState
&&
`1px solid
${
theme
.
backgroundOutline
}
`
}
;
border-bottom:
${({
theme
,
nftFlagEnabled
,
scrolledState
})
=>
scrolledState
&&
nftFlagEnabled
&&
`1px solid
${
theme
.
backgroundOutline
}
`
}
;
width: 100%;
width: 100%;
justify-content: space-between;
justify-content: space-between;
position: fixed;
position: fixed;
transition:
${({
theme
,
nftFlagEnabled
})
=>
transition:
${({
theme
})
=>
nftFlagEnabled
&&
`background-color
${
theme
.
transition
.
duration
.
fast
}
ease-in-out,
`background-color
${
theme
.
transition
.
duration
.
fast
}
ease-in-out,
border-width
${
theme
.
transition
.
duration
.
fast
}
ease-in-out`
}
;
border-width
${
theme
.
transition
.
duration
.
fast
}
ease-in-out`
}
;
top: 0;
top: 0;
...
@@ -171,7 +168,7 @@ export default function App() {
...
@@ -171,7 +168,7 @@ export default function App() {
<
ApeModeQueryParamReader
/>
<
ApeModeQueryParamReader
/>
<
AppWrapper
>
<
AppWrapper
>
<
Trace
page=
{
currentPage
}
>
<
Trace
page=
{
currentPage
}
>
<
HeaderWrapper
scrolledState=
{
scrolledState
}
nftFlagEnabled=
{
nftFlag
===
NftVariant
.
Enabled
}
>
<
HeaderWrapper
scrolledState=
{
scrolledState
}
>
<
NavBar
/>
<
NavBar
/>
</
HeaderWrapper
>
</
HeaderWrapper
>
<
BodyWrapper
>
<
BodyWrapper
>
...
...
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