Skip to content

Commit

Permalink
feat: update ui
Browse files Browse the repository at this point in the history
  • Loading branch information
naturexie committed Jan 15, 2025
1 parent b4dd029 commit b7eb00d
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 11 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ module.exports = {
"no-await-in-loop": "off",
"no-lonely-if": "off",
"react/jsx-boolean-value": "off",
"react/no-unescaped-entities": "off",
},
settings: {
react: {
Expand Down
13 changes: 12 additions & 1 deletion screens/MarginTrading/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,18 @@ const MarginTrading = () => {
className="text-white text-center bg-dark-100 px-5 pt-9 pb-7 rounded-md border border-dark-300"
style={{ width: "278px" }}
>
<div className="mb-4 text-gray-300 h4">Account is not whitelist.</div>
<div className="mb-4 text-gray-300 h4">
Tradoors? It's beta version,{" "}
<span
className="cursor-pointer text-primary"
onClick={() => {
router.push("https://forms.gle/kEsoobXU8u55Fp8x7");
}}
>
submit whitelist
</span>{" "}
form and come back in 24h
</div>
<div
onClick={() => router.push("/")}
className="text-primary h4 underline cursor-pointer"
Expand Down
2 changes: 2 additions & 0 deletions utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,8 @@ export const MARGIN_WHITELIST = [
"0xg1enn.near",
"bobbypack.near",
"itsmarcus.near",
"fc948c6698f446df71b438821b6b7d69df5ce8150c4ada62ebd84abcc771f468",
"zerobot.near",
];
export const DISABLE_WITHDRAW_ADDRESS = "bc1p";
const getConfig = (env: string = defaultNetwork) => {
Expand Down
16 changes: 6 additions & 10 deletions utils/wallet-selector-compat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,19 @@ export const getWalletSelector = async ({ onAccountChange }: GetWalletSelectorAr
} catch (error) {}
selector = await setupWalletSelector({
modules: [
setupMeteorWallet(),
setupEthereumWallets({
wagmiConfig,
web3Modal,
alwaysOnboardDuringSignIn: true,
} as any),
setupOKXWallet({}),
setupBTCWallet({
autoConnect: true,
env: "private_mainnet",
}) as any,
myNearWallet,
setupOKXWallet({}),
setupSender() as any,
setupMeteorWallet(),
walletConnect2,
setupNearMobileWallet({
dAppMetadata: {
Expand All @@ -171,10 +175,6 @@ export const getWalletSelector = async ({ onAccountChange }: GetWalletSelectorAr
}),
setupHereWallet(),
setupNightly(),
setupNeth({
bundle: false,
gas: "300000000000000",
}),
setupKeypom({
networkId: defaultNetwork,
signInContractId: LOGIC_CONTRACT_NAME,
Expand All @@ -198,10 +198,6 @@ export const getWalletSelector = async ({ onAccountChange }: GetWalletSelectorAr
deprecated: false,
}),
setupCoin98Wallet(),
setupBTCWallet({
autoConnect: true,
env: "private_mainnet",
}) as any,
],
network: {
networkId: defaultNetwork,
Expand Down

0 comments on commit b7eb00d

Please sign in to comment.