-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: add tab props * feature: add bridge button to assets table * refactor: don't show buy button for wrapped token
- Loading branch information
Showing
2 changed files
with
40 additions
and
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,35 @@ | ||
import { Flex, Tabs, TabsItem } from '@/component-library'; | ||
import MainContainer from '@/parts/MainContainer'; | ||
import { useTabPageLocation } from '@/utils/hooks/use-tab-page-location'; | ||
|
||
import { CrossChainTransferForm, TransferForm } from './components'; | ||
import { StyledCard, StyledFormWrapper, StyledWrapper } from './TransferForms.styles'; | ||
|
||
const TransferForms = (): JSX.Element => ( | ||
<MainContainer> | ||
<StyledWrapper> | ||
<StyledCard gap='spacing2'> | ||
<Flex direction='column' gap='spacing8'> | ||
<Tabs size='large' fullWidth> | ||
<TabsItem title='Transfer' key='transfer'> | ||
<StyledFormWrapper> | ||
<TransferForm /> | ||
</StyledFormWrapper> | ||
</TabsItem> | ||
<TabsItem title='Cross Chain Transfer' key='crossChainTransfer'> | ||
<StyledFormWrapper> | ||
<CrossChainTransferForm /> | ||
</StyledFormWrapper> | ||
</TabsItem> | ||
</Tabs> | ||
</Flex> | ||
</StyledCard> | ||
</StyledWrapper> | ||
</MainContainer> | ||
); | ||
const TransferForms = (): JSX.Element => { | ||
const { tabsProps } = useTabPageLocation(); | ||
|
||
return ( | ||
<MainContainer> | ||
<StyledWrapper> | ||
<StyledCard gap='spacing2'> | ||
<Flex direction='column' gap='spacing8'> | ||
<Tabs {...tabsProps} size='large' fullWidth> | ||
<TabsItem title='Transfer' key='transfer'> | ||
<StyledFormWrapper> | ||
<TransferForm /> | ||
</StyledFormWrapper> | ||
</TabsItem> | ||
<TabsItem title='Cross Chain Transfer' key='crossChainTransfer'> | ||
<StyledFormWrapper> | ||
<CrossChainTransferForm /> | ||
</StyledFormWrapper> | ||
</TabsItem> | ||
</Tabs> | ||
</Flex> | ||
</StyledCard> | ||
</StyledWrapper> | ||
</MainContainer> | ||
); | ||
}; | ||
|
||
export default TransferForms; |
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
f3a7a12
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:
interbtc-ui-kintsugi-testnet – ./
interbtc-ui.vercel.app
kintnet.interlay.io
interbtc-ui-kintsugi-testnet-git-master-interlay.vercel.app
interbtc-ui-kintsugi-testnet-interlay.vercel.app
f3a7a12
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:
interbtc-ui-interlay-testnet – ./
interbtc-ui-interlay-testnet.vercel.app
interbtc-ui-interlay-testnet-git-master-interlay.vercel.app
interbtc-ui-interlay-testnet-interlay.vercel.app
testnet.interlay.io