fix: remove settings button from lp page (#7105)
remove settings button from lp page
This commit is contained in:
parent
13f57d8d73
commit
9672c2db9a
@ -1,6 +1,4 @@
|
||||
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>
|
||||
)
|
||||
|
@ -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>
|
||||
|
@ -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}
|
||||
|
@ -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">
|
||||
|
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user