-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: add liquidity page (default) * feat: add new swap page (and set as default page) * feat: adjust header + remove swap banner * feat: add Swap liquidity banner * feat: add liquidity banner for liquidity page * feat: add language + replace swingby.info with app.swingby.network * fix: mobile view * feat: upgrade header
- Loading branch information
1 parent
dcbf712
commit 83a7319
Showing
52 changed files
with
2,110 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ export const URL = { | |
Support: '[email protected]', | ||
HowItWorks: 'https://skybridge-docs.swingby.network/how-it-works', | ||
SwapFees: 'https://tbtc-ropsten-node-1.swingby.network/api/v1/swaps/fees', | ||
SkybridgeMainnet: 'https://skybridge.info/', | ||
SkybridgeMainnet: 'https://app.swingby.network/', | ||
SkybridgeTestnet: 'https://testnet.skybridge.info/', | ||
Erc20Bridge: 'https://bridge.swingby.network/', | ||
YieldFarming: 'https://farm.swingby.network/', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
src/modules/scenes/Main/Liquidity/ActionButtonsLiquidity/index.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import { useMatchMedia } from '@swingby-protocol/pulsar'; | ||
import { rem } from 'polished'; | ||
import React from 'react'; | ||
import { FormattedMessage } from 'react-intl'; | ||
import { useDispatch } from 'react-redux'; | ||
|
||
import { PoolMode } from '../../../../pool'; | ||
import { toggleLiquidityMode } from '../../../../store'; | ||
import { StylingConstants } from '../../../../styles'; | ||
|
||
import { ActionButtonsLiquidityContainer, Buttons, ButtonLiquidity } from './styled'; | ||
|
||
export const ActionButtonsLiquidity = () => { | ||
const dispatch = useDispatch(); | ||
|
||
const { media } = StylingConstants; | ||
const sm = useMatchMedia({ query: `(min-width: ${rem(media.sm)})` }); | ||
|
||
return ( | ||
<ActionButtonsLiquidityContainer> | ||
<Buttons> | ||
<ButtonLiquidity | ||
variant="primary" | ||
size="city" | ||
onClick={() => dispatch(toggleLiquidityMode(PoolMode.AddLiquidity))} | ||
> | ||
<FormattedMessage id="pool.add-liquidity" values={{ value: sm && '+ ' }} /> | ||
</ButtonLiquidity> | ||
<ButtonLiquidity | ||
variant="secondary" | ||
size="city" | ||
onClick={() => dispatch(toggleLiquidityMode(PoolMode.Withdraw))} | ||
> | ||
<FormattedMessage id="pool.withdraw" /> | ||
</ButtonLiquidity> | ||
</Buttons> | ||
</ActionButtonsLiquidityContainer> | ||
); | ||
}; |
Oops, something went wrong.
83a7319
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
new-explorer-mainnet – ./
new-explorer-mainnet-swingby.vercel.app
app.swingby.network
new-explorer-mainnet.vercel.app
skybridge.info
new-explorer-mainnet-git-master-swingby.vercel.app