From f29aaba0975689e9b50b89079867153a18d56b1b Mon Sep 17 00:00:00 2001 From: Aka jazzy Date: Wed, 22 Mar 2023 10:16:16 +0800 Subject: [PATCH 1/2] chore(wallet): test aa wallet support article feature --- src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx b/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx index f2abb6c4f8..eed2d7b910 100644 --- a/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx +++ b/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx @@ -5,6 +5,7 @@ import _get from 'lodash/get' import _pickBy from 'lodash/pickBy' import { useContext, useEffect, useRef, useState } from 'react' import { useAccount } from 'wagmi' +import { polygon } from 'wagmi/chains' import { PAYMENT_CURRENCY as CURRENCY, @@ -110,7 +111,7 @@ const SetAmount: React.FC = ({ viewer.info.ethAddress?.toLowerCase() === address?.toLowerCase() // TODO: support multiple networks - const targetNetork = featureSupportedChains.curation[0] + const targetNetork = polygon const { isUnsupportedNetwork, switchToTargetNetwork, isSwitchingNetwork } = useTargetNetwork(targetNetork) From afe71b8503ddfb11f2854ee9b2815c6e1da1a9ce Mon Sep 17 00:00:00 2001 From: Aka jazzy Date: Wed, 22 Mar 2023 10:20:46 +0800 Subject: [PATCH 2/2] chore(wallet): fix linting --- src/components/Dialogs/HelpDialog/index.tsx | 15 ++++++++++++--- .../Forms/PaymentForm/PayTo/SetAmount/index.tsx | 3 +-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/Dialogs/HelpDialog/index.tsx b/src/components/Dialogs/HelpDialog/index.tsx index 8e9ea7a741..31ff86a96c 100644 --- a/src/components/Dialogs/HelpDialog/index.tsx +++ b/src/components/Dialogs/HelpDialog/index.tsx @@ -23,11 +23,17 @@ const ReadTime = () => ( <>

} weight="md"> - +

- +

@@ -41,7 +47,10 @@ const ReadCount = () => (

- +

diff --git a/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx b/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx index eed2d7b910..ec762b9fbf 100644 --- a/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx +++ b/src/components/Forms/PaymentForm/PayTo/SetAmount/index.tsx @@ -5,14 +5,13 @@ import _get from 'lodash/get' import _pickBy from 'lodash/pickBy' import { useContext, useEffect, useRef, useState } from 'react' import { useAccount } from 'wagmi' -import { polygon } from 'wagmi/chains' +import { polygon } from 'wagmi/chains' import { PAYMENT_CURRENCY as CURRENCY, PAYMENT_MAXIMUM_PAYTO_AMOUNT, } from '~/common/enums' import { - featureSupportedChains, formatAmount, numRound, validateCurrency,