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
9672c2db
Unverified
Commit
9672c2db
authored
Sep 19, 2023
by
Brendan Wong
Committed by
GitHub
Sep 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: remove settings button from lp page (#7105)
remove settings button from lp page
parent
13f57d8d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
4 additions
and
22 deletions
+4
-22
index.tsx
src/components/NavigationTabs/index.tsx
+0
-7
index.tsx
src/pages/AddLiquidity/index.tsx
+1
-7
index.tsx
src/pages/AddLiquidityV2/index.tsx
+1
-1
V3.tsx
src/pages/RemoveLiquidity/V3.tsx
+1
-6
index.tsx
src/pages/RemoveLiquidity/index.tsx
+1
-1
No files found.
src/components/NavigationTabs/index.tsx
View file @
9672c2db
import
{
Trans
}
from
'
@lingui/macro
'
import
{
Percent
}
from
'
@uniswap/sdk-core
'
import
{
useWeb3React
}
from
'
@web3-react/core
'
import
{
ReactNode
}
from
'
react
'
import
{
ArrowLeft
}
from
'
react-feather
'
import
{
Link
,
useLocation
}
from
'
react-router-dom
'
...
...
@@ -13,7 +11,6 @@ import { ThemedText } from 'theme'
import
{
flexRowNoWrap
}
from
'
theme/styles
'
import
{
RowBetween
}
from
'
../Row
'
import
SettingsTab
from
'
../Settings
'
const
Tabs
=
styled
.
div
`
${
flexRowNoWrap
}
;
...
...
@@ -64,18 +61,15 @@ const AddRemoveTitleText = styled(ThemedText.SubHeaderLarge)`
export
function
AddRemoveTabs
({
adding
,
creating
,
autoSlippage
,
positionID
,
children
,
}:
{
adding
:
boolean
creating
:
boolean
autoSlippage
:
Percent
positionID
?:
string
showBackLink
?:
boolean
children
?:
ReactNode
})
{
const
{
chainId
}
=
useWeb3React
()
const
theme
=
useTheme
()
// reset states on back
const
dispatch
=
useAppDispatch
()
...
...
@@ -112,7 +106,6 @@ export function AddRemoveTabs({
)
}
</
AddRemoveTitleText
>
{
children
&&
<
Box
style=
{
{
marginRight
:
'
.5rem
'
}
}
>
{
children
}
</
Box
>
}
<
SettingsTab
autoSlippage=
{
autoSlippage
}
chainId=
{
chainId
}
/>
</
RowBetween
>
</
Tabs
>
)
...
...
src/pages/AddLiquidity/index.tsx
View file @
9672c2db
...
...
@@ -607,13 +607,7 @@ function AddLiquidity() {
pendingText={pendingText}
/>
<StyledBodyWrapper $hasExistingPosition={hasExistingPosition}>
<AddRemoveTabs
creating={false}
adding={true}
positionID={tokenId}
autoSlippage={DEFAULT_ADD_IN_RANGE_SLIPPAGE_TOLERANCE}
showBackLink={!hasExistingPosition}
>
<AddRemoveTabs creating={false} adding={true} positionID={tokenId} showBackLink={!hasExistingPosition}>
{!hasExistingPosition && (
<Row justifyContent="flex-end" style={{ width: 'fit-content', minWidth: 'fit-content' }}>
<MediumOnly>
...
...
src/pages/AddLiquidityV2/index.tsx
View file @
9672c2db
...
...
@@ -335,7 +335,7 @@ export default function AddLiquidity() {
return
(
<>
<
AppBody
>
<
AddRemoveTabs
creating=
{
isCreate
}
adding=
{
true
}
autoSlippage=
{
DEFAULT_ADD_V2_SLIPPAGE_TOLERANCE
}
/>
<
AddRemoveTabs
creating=
{
isCreate
}
adding=
{
true
}
/>
<
Wrapper
>
<
TransactionConfirmationModal
isOpen=
{
showConfirm
}
...
...
src/pages/RemoveLiquidity/V3.tsx
View file @
9672c2db
...
...
@@ -300,12 +300,7 @@ function Remove({ tokenId }: { tokenId: BigNumber }) {
pendingText=
{
pendingText
}
/>
<
AppBody
$maxWidth=
"unset"
>
<
AddRemoveTabs
creating=
{
false
}
adding=
{
false
}
positionID=
{
tokenId
.
toString
()
}
autoSlippage=
{
DEFAULT_REMOVE_V3_LIQUIDITY_SLIPPAGE_TOLERANCE
}
/>
<
AddRemoveTabs
creating=
{
false
}
adding=
{
false
}
positionID=
{
tokenId
.
toString
()
}
/>
<
Wrapper
>
{
position
?
(
<
AutoColumn
gap=
"lg"
>
...
...
src/pages/RemoveLiquidity/index.tsx
View file @
9672c2db
...
...
@@ -451,7 +451,7 @@ function RemoveLiquidity() {
return
(
<>
<
AppBody
>
<
AddRemoveTabs
creating=
{
false
}
adding=
{
false
}
autoSlippage=
{
DEFAULT_REMOVE_LIQUIDITY_SLIPPAGE_TOLERANCE
}
/>
<
AddRemoveTabs
creating=
{
false
}
adding=
{
false
}
/>
<
Wrapper
>
<
TransactionConfirmationModal
isOpen=
{
showConfirm
}
...
...
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