Commit e8587396 authored by Noah Zinsmeister's avatar Noah Zinsmeister

hide collect fees if not owner

link to owner
parent d69b194f
...@@ -12,9 +12,9 @@ import styled from 'styled-components' ...@@ -12,9 +12,9 @@ import styled from 'styled-components'
import { AutoColumn } from 'components/Column' import { AutoColumn } from 'components/Column'
import { RowBetween, RowFixed } from 'components/Row' import { RowBetween, RowFixed } from 'components/Row'
import DoubleCurrencyLogo from 'components/DoubleLogo' import DoubleCurrencyLogo from 'components/DoubleLogo'
import { HideExtraSmall, TYPE } from 'theme' import { ExternalLink, HideExtraSmall, TYPE } from 'theme'
import Badge from 'components/Badge' import Badge from 'components/Badge'
import { calculateGasMargin } from 'utils' import { calculateGasMargin, getEtherscanLink } from 'utils'
import { ButtonConfirmed, ButtonPrimary, ButtonGray } from 'components/Button' import { ButtonConfirmed, ButtonPrimary, ButtonGray } from 'components/Button'
import { DarkCard, DarkGreyCard, LightCard } from 'components/Card' import { DarkCard, DarkGreyCard, LightCard } from 'components/Card'
import CurrencyLogo from 'components/CurrencyLogo' import CurrencyLogo from 'components/CurrencyLogo'
...@@ -456,6 +456,9 @@ export function PositionPage({ ...@@ -456,6 +456,9 @@ export function PositionPage({
<div style={{ marginRight: 12 }}> <div style={{ marginRight: 12 }}>
<img height="400px" src={metadata.result.image} /> <img height="400px" src={metadata.result.image} />
</div> </div>
{typeof chainId === 'number' && owner && !ownsNFT ? (
<ExternalLink href={getEtherscanLink(chainId, owner, 'address')}>Owner</ExternalLink>
) : null}
</DarkCard> </DarkCard>
) : ( ) : (
<DarkCard <DarkCard
...@@ -542,7 +545,7 @@ export function PositionPage({ ...@@ -542,7 +545,7 @@ export function PositionPage({
</TYPE.largeHeader> </TYPE.largeHeader>
)} )}
</AutoColumn> </AutoColumn>
{feeValue0?.greaterThan(0) || feeValue1?.greaterThan(0) || !!collectMigrationHash ? ( {ownsNFT && (feeValue0?.greaterThan(0) || feeValue1?.greaterThan(0) || !!collectMigrationHash) ? (
<ButtonConfirmed <ButtonConfirmed
disabled={collecting || !!collectMigrationHash} disabled={collecting || !!collectMigrationHash}
confirmed={!!collectMigrationHash && !isCollectPending} confirmed={!!collectMigrationHash && !isCollectPending}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment