@@ -817,13 +818,13 @@ const GasSelectorHeader = ({
>
}
>
-
+
{gasMethod ? (
-
-
- {gasCostUsdStr}
-
-
- {gasCostAmountStr}
-
-
+
+
+ {gasCostAmountStr}
+
+
) : (
{
const { active, onChange, ActiveComponent, BlurComponent, tips } = props;
return (
-
-
+
);
};
diff --git a/src/ui/views/GasAccount/components/GasAccountTxPopups.tsx b/src/ui/views/GasAccount/components/GasAccountTxPopups.tsx
index 0cf0831a607..03b1e4dcedc 100644
--- a/src/ui/views/GasAccount/components/GasAccountTxPopups.tsx
+++ b/src/ui/views/GasAccount/components/GasAccountTxPopups.tsx
@@ -9,12 +9,13 @@ import PNGDepositTip from '@/ui/assets/gas-account/gas-account-deposit-tip.png';
import { GasAccountBlueLogo } from './GasAccountBlueLogo';
import { ReactComponent as RcIconQuoteStart } from '@/ui/assets/gas-account/quote-start.svg';
import { ReactComponent as RcIconQuoteEnd } from '@/ui/assets/gas-account/quote-end.svg';
+import { GasAccountWrapperBg } from './WrapperBg';
const GasAccountDepositTipContent = ({ onClose }: { onClose: () => void }) => {
const { t } = useTranslation();
return (
-
+
{t('page.gasAccount.GasAccountDepositTipPopup.title')}
@@ -29,7 +30,7 @@ const GasAccountDepositTipContent = ({ onClose }: { onClose: () => void }) => {
{t('page.gasAccount.GasAccountDepositTipPopup.gotIt')}
-
+
);
};
@@ -56,7 +57,7 @@ const GasAccountLoginTipContent = ({ onClose }: { onClose: () => void }) => {
const { t } = useTranslation();
return (
-
+
void }) => {
{t('page.gasAccount.GasAccountDepositTipPopup.gotIt')}
-
+
);
};
diff --git a/src/ui/views/GasAccount/components/LoginPopup.tsx b/src/ui/views/GasAccount/components/LoginPopup.tsx
index f9f6224c4a1..3d8bf8a2eeb 100644
--- a/src/ui/views/GasAccount/components/LoginPopup.tsx
+++ b/src/ui/views/GasAccount/components/LoginPopup.tsx
@@ -117,7 +117,7 @@ const GasAccountLoginContent = ({ onClose }: { onClose: () => void }) => {
block
size="large"
type="primary"
- className="h-[44px] text-r-neutral-title2 text-15 font-medium"
+ className="h-[48px] text-r-neutral-title2 text-15 font-medium"
>
{t('global.Confirm')}
diff --git a/src/ui/views/GasAccount/hooks/checkTxs.ts b/src/ui/views/GasAccount/hooks/checkTxs.ts
index 8338f92acd8..b6aff3ae03e 100644
--- a/src/ui/views/GasAccount/hooks/checkTxs.ts
+++ b/src/ui/views/GasAccount/hooks/checkTxs.ts
@@ -30,7 +30,7 @@ export const useGasAccountTxsCheck = ({
setIsGasAccountLogin(false);
}
return wallet.openapi.checkGasAccountTxs({
- sig: sig!,
+ sig: sig || '',
account_id: accountId!,
tx_list: txs,
});
diff --git a/src/ui/views/GasAccount/hooks/index.ts b/src/ui/views/GasAccount/hooks/index.ts
index ada0b96747f..76ac1ffd351 100644
--- a/src/ui/views/GasAccount/hooks/index.ts
+++ b/src/ui/views/GasAccount/hooks/index.ts
@@ -146,7 +146,10 @@ export const useGasAccountHistory = () => {
reloadDeps: [sig],
isNoMore(data) {
if (data) {
- return !(!!data?.rechargeList && data?.rechargeList?.length > 0);
+ return (
+ data.totalCount <=
+ (data.list.length || 0) + (data?.rechargeList?.length || 0)
+ );
}
return true;
},
@@ -191,9 +194,12 @@ export const useGasAccountHistory = () => {
const [inViewport] = useInViewport(ref);
+ console.log('inViewport', inViewport, noMore, loadingMore);
+
useEffect(() => {
if (!noMore && inViewport && !loadingMore && loadMore) {
loadMore();
+ console.log('loadMore');
}
}, [inViewport, loadMore, loading, loadingMore, noMore]);
diff --git a/src/ui/views/GasAccount/index.tsx b/src/ui/views/GasAccount/index.tsx
index 365176191a3..da96812661e 100644
--- a/src/ui/views/GasAccount/index.tsx
+++ b/src/ui/views/GasAccount/index.tsx
@@ -153,7 +153,10 @@ const GasAccountInner = () => {
/>
setLogoutVisible(false)}
+ onCancel={() => {
+ gotoDashboard();
+ setLogoutVisible(false);
+ }}
/>