From 4f3f8470912b459c1fb3b2f5e6ba09a8b2d83e75 Mon Sep 17 00:00:00 2001 From: Farrah Mae Ochoa Date: Tue, 7 May 2024 16:28:56 +0400 Subject: [PATCH] fix: bugs --- .../ProfileBalance/ProfileBalance.scss | 9 ++++----- .../ProfileBalance/ProfileBalance.tsx | 10 +++------- src/components/Verification/Verification.tsx | 7 +++---- .../MyProfileAdDetails/MyProfileAdDetails.scss | 1 + .../MyProfileAdDetails/MyProfileAdDetails.tsx | 15 +++++++++------ .../PaymentMethodsEmpty/PaymentMethodsEmpty.tsx | 2 +- src/routes/AppContent/index.scss | 2 +- 7 files changed, 22 insertions(+), 24 deletions(-) diff --git a/src/components/ProfileContent/ProfileBalance/ProfileBalance.scss b/src/components/ProfileContent/ProfileBalance/ProfileBalance.scss index 5875f827..f422a26d 100644 --- a/src/components/ProfileContent/ProfileBalance/ProfileBalance.scss +++ b/src/components/ProfileContent/ProfileBalance/ProfileBalance.scss @@ -11,11 +11,6 @@ &__amount { display: flex; flex-direction: column; - gap: 1rem; - - @include mobile { - gap: 0; - } & div { display: flex; @@ -63,6 +58,10 @@ display: grid; grid-template-columns: 1fr 1fr; + @include desktop { + margin-bottom: 2.8rem; + } + @include mobile { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; diff --git a/src/components/ProfileContent/ProfileBalance/ProfileBalance.tsx b/src/components/ProfileContent/ProfileBalance/ProfileBalance.tsx index 211e0ecb..e076e4a5 100644 --- a/src/components/ProfileContent/ProfileBalance/ProfileBalance.tsx +++ b/src/components/ProfileContent/ProfileBalance/ProfileBalance.tsx @@ -62,12 +62,10 @@ const ProfileBalance = ({ advertiserStats }: { advertiserStats: DeepPartial {dailyLimits.map(({ available, dailyLimit, type }) => (
- {type} + {type}
- - Daily limit - + Daily limit
- - Available - + Available { const Verification = () => { const { isMobile } = useDevice(); - const history = useHistory(); const { data, isLoading } = usePoiPoaStatus(); const { isP2PPoaRequired, isPoaPending, isPoaVerified, isPoiPending, isPoiVerified, poaStatus, poiStatus } = data || {}; @@ -49,7 +47,8 @@ const Verification = () => { urlParams.forEach((value, key) => updatedUrlParams.append(key, value)); updatedUrl = `${updatedUrl}&${urlParams.toString()}`; } - history.push(updatedUrl); + + window.location.href = updatedUrl; }; const checklistItems = [ @@ -87,7 +86,7 @@ const Verification = () => { Verify your P2P account - + Verify your identity and address to use Deriv P2P. diff --git a/src/pages/my-profile/screens/MyProfileAdDetails/MyProfileAdDetails.scss b/src/pages/my-profile/screens/MyProfileAdDetails/MyProfileAdDetails.scss index 99eb9ea7..f984f232 100644 --- a/src/pages/my-profile/screens/MyProfileAdDetails/MyProfileAdDetails.scss +++ b/src/pages/my-profile/screens/MyProfileAdDetails/MyProfileAdDetails.scss @@ -15,6 +15,7 @@ &__border { border-top: 2px solid #f2f3f4; + width: 100%; } &__mobile-wrapper { diff --git a/src/pages/my-profile/screens/MyProfileAdDetails/MyProfileAdDetails.tsx b/src/pages/my-profile/screens/MyProfileAdDetails/MyProfileAdDetails.tsx index dd9739a2..a3ef6b80 100644 --- a/src/pages/my-profile/screens/MyProfileAdDetails/MyProfileAdDetails.tsx +++ b/src/pages/my-profile/screens/MyProfileAdDetails/MyProfileAdDetails.tsx @@ -3,7 +3,7 @@ import { THooks } from 'types'; import { FullPageMobileWrapper, TextArea } from '@/components'; import { api } from '@/hooks'; import { useQueryString } from '@/hooks/custom-hooks'; -import { Button, Loader, useDevice } from '@deriv-com/ui'; +import { Button, useDevice } from '@deriv-com/ui'; import './MyProfileAdDetails.scss'; type TMYProfileAdDetailsTextAreaProps = { @@ -20,15 +20,17 @@ const MyProfileAdDetailsTextArea = ({ return ( <>