diff --git a/src/components/DepositDialog.js b/src/components/DepositDialog.js
index edfe17b..b056434 100644
--- a/src/components/DepositDialog.js
+++ b/src/components/DepositDialog.js
@@ -63,7 +63,10 @@ export default function DepositDialog({
if (!mint) {
firstTab = 'SOL';
} else {
- if (localStorage.getItem('sollet-private') || swapInfo.blockchain !== 'eth') {
+ if (
+ localStorage.getItem('sollet-private') ||
+ swapInfo.blockchain !== 'eth'
+ ) {
secondTab = `${
swapInfo.coin.erc20Contract ? 'ERC20' : 'Native'
} ${secondTab}`;
@@ -103,7 +106,20 @@ export default function DepositDialog({
)}
- {tabs}
+ {tabs === null ? (
+ setTab(value)}
+ textColor="primary"
+ indicatorColor="primary"
+ >
+
+
+
+ ) : (
+ tabs
+ )}
{tab === 0 ? (
<>
@@ -142,6 +158,19 @@ export default function DepositDialog({
>
+ ) : tab === 1 ? (
+
+ Please use the{' '}
+
+ Wormhole Portal Bridge
+ {' '}
+ to bridge your assets.
+
) : (
{
+ // if sollet-private key not there, just show the SPL tab
+ if (!localStorage.getItem('sollet-private'))
+ return [
+ ,
+ ,
+ ];
+
if (mint?.equals(WUSDC_MINT)) {
return [
,
+ ,
,
,
];
} else if (mint?.equals(WUSDT_MINT)) {
return [
,
+ ,
,
,
];
@@ -98,6 +107,7 @@ export default function SendDialog({ open, onClose, publicKey, balanceInfo }) {
) {
return [
,
+ ,
,
,
];
@@ -113,6 +123,7 @@ export default function SendDialog({ open, onClose, publicKey, balanceInfo }) {
);
const tabs = [
,
+ ,
];
if (
!DISABLED_ERC20_MINTS.has(mint.toString()) ||
@@ -153,7 +164,18 @@ export default function SendDialog({ open, onClose, publicKey, balanceInfo }) {
>
{getTabs(mint)}
- ) : null}
+ ) : (
+ setTab(value)}
+ textColor="primary"
+ indicatorColor="primary"
+ >
+
+
+
+ )}
{tab === 'spl' ? (
+ ) : tab === 'wormhole' ? (
+
+
+ Please use the{' '}
+
+ Wormhole Portal Bridge
+ {' '}
+ to bridge your assets.
+
+
) : tab === 'wusdcToSplUsdc' ? (