Skip to content

Commit

Permalink
Merge pull request #85 from terraswap/hotfix/provide-button
Browse files Browse the repository at this point in the history
fix: Dashboard/Pair
  • Loading branch information
JoowonYun authored Mar 11, 2022
2 parents 86cab69 + 6983cf5 commit 760820b
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions src/pages/Dashboard/Pair.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -106,22 +106,38 @@ const PairPage = () => {
justifyContent: "flex-start",
alignItems: "flex-end",
gap: 10,
flex: 1,
}}
>
<div style={{ fontSize: 26, fontWeight: 700, lineHeight: "1" }}>
{pair?.token0?.symbol}-{pair?.token1?.symbol}
</div>
<div className="desktop-only">{pair?.pairAddress}</div>
<Copy value={pair?.pairAddress} />
<div className="desktop-only">
<Copy value={pair?.pairAddress} />
</div>
<div className="mobile-only" style={{ marginLeft: "auto" }}>
<Copy value={pair?.pairAddress} />
</div>
</div>
<div style={{ marginLeft: "auto" }}>
<div className="desktop-only" style={{ marginLeft: "auto" }}>
<ProvideButton
to={`/swap?from=${pair?.token0?.tokenAddress}&to=${pair?.token1?.tokenAddress}&type=provide`}
>
Provide Liquidity
</ProvideButton>
</div>
</div>
<div
className="mobile-only"
style={{ textAlign: "center", margin: "10px 0" }}
>
<ProvideButton
to={`/swap?from=${pair?.token0?.tokenAddress}&to=${pair?.token1?.tokenAddress}&type=provide`}
>
Provide Liquidity
</ProvideButton>
</div>
<Summary
data={[
{
Expand Down

0 comments on commit 760820b

Please sign in to comment.