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
e15ccc3c
Unverified
Commit
e15ccc3c
authored
Dec 05, 2022
by
Jordan Frankfurt
Committed by
GitHub
Dec 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: update <AppBody /> to allow its intended prop passthrough (#5537)
parent
e8880be1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
8 deletions
+13
-8
AppBody.tsx
src/pages/AppBody.tsx
+11
-6
index.tsx
src/pages/CreateProposal/index.tsx
+1
-1
V3.tsx
src/pages/RemoveLiquidity/V3.tsx
+1
-1
No files found.
src/pages/AppBody.tsx
View file @
e15ccc3c
import
React
from
'
react
'
import
React
,
{
PropsWithChildren
}
from
'
react
'
import
styled
from
'
styled-components/macro
'
import
styled
from
'
styled-components/macro
'
import
{
Z_INDEX
}
from
'
theme/zIndex
'
import
{
Z_INDEX
}
from
'
theme/zIndex
'
export
const
BodyWrapper
=
styled
.
main
<
{
margin
?:
string
;
maxWidth
?:
string
}
>
`
interface
BodyWrapperProps
{
$margin
?:
string
$maxWidth
?:
string
}
export
const
BodyWrapper
=
styled
.
main
<
BodyWrapperProps
>
`
position: relative;
position: relative;
margin-top:
${({
margin
})
=>
margin
??
'
0px
'
};
margin-top:
${({
$margin
})
=>
$
margin
??
'
0px
'
};
max
-
width
:
$
{({
maxWidth
})
=>
maxWidth
??
'
420px
'
};
max
-
width
:
$
{({
$maxWidth
})
=>
$
maxWidth
??
'
420px
'
};
width
:
100
%
;
width
:
100
%
;
background
:
$
{({
theme
})
=>
theme
.
backgroundSurface
};
background
:
$
{({
theme
})
=>
theme
.
backgroundSurface
};
border
-
radius
:
16
px
;
border
-
radius
:
16
px
;
...
@@ -20,6 +25,6 @@ export const BodyWrapper = styled.main<{ margin?: string; maxWidth?: string }>`
...
@@ -20,6 +25,6 @@ export const BodyWrapper = styled.main<{ margin?: string; maxWidth?: string }>`
/**
/**
* The styled container element that wraps the content of most pages and the tabs.
* The styled container element that wraps the content of most pages and the tabs.
*/
*/
export
default
function
AppBody
(
{
children
,
...
rest
}:
{
children
:
React
.
ReactNode
}
)
{
export
default
function
AppBody
(
props
:
PropsWithChildren
<
BodyWrapperProps
>
)
{
return
<
BodyWrapper
{
...
rest
}
>
{
children
}
</
BodyWrapper
>
return
<
BodyWrapper
{
...
props
}
/
>
}
}
src/pages/CreateProposal/index.tsx
View file @
e15ccc3c
...
@@ -241,7 +241,7 @@ ${bodyValue}
...
@@ -241,7 +241,7 @@ ${bodyValue}
return
(
return
(
<
Trace
page=
{
PageName
.
VOTE_PAGE
}
shouldLogImpression
>
<
Trace
page=
{
PageName
.
VOTE_PAGE
}
shouldLogImpression
>
<
PageWrapper
>
<
PageWrapper
>
<
AppBody
{
...
{
maxWidth
:
'800
px
'
}}
>
<
AppBody
$maxWidth=
"800px"
>
<
CreateProposalTabs
/>
<
CreateProposalTabs
/>
<
CreateProposalWrapper
>
<
CreateProposalWrapper
>
<
BlueCard
>
<
BlueCard
>
...
...
src/pages/RemoveLiquidity/V3.tsx
View file @
e15ccc3c
...
@@ -290,7 +290,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
...
@@ -290,7 +290,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
)
}
)
}
pendingText=
{
pendingText
}
pendingText=
{
pendingText
}
/>
/>
<
AppBody
>
<
AppBody
$maxWidth=
"unset"
>
<
AddRemoveTabs
<
AddRemoveTabs
creating=
{
false
}
creating=
{
false
}
adding=
{
false
}
adding=
{
false
}
...
...
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