{table.getFlatHeaders().map(header => (
diff --git a/src/main.scss b/src/main.scss
index 31c7e0ef..d1181a7a 100644
--- a/src/main.scss
+++ b/src/main.scss
@@ -14,4 +14,7 @@ body {
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
+ position: relative;
+ min-height: 100%;
+ height: 100%;
}
diff --git a/src/pages/advertiser/screens/Advertiser/Advertiser.scss b/src/pages/advertiser/screens/Advertiser/Advertiser.scss
index cfad7dab..4dad6bf2 100644
--- a/src/pages/advertiser/screens/Advertiser/Advertiser.scss
+++ b/src/pages/advertiser/screens/Advertiser/Advertiser.scss
@@ -6,7 +6,7 @@
@include mobile-or-tablet-screen {
top: 0;
- overflow: overlay;
+ overflow: auto;
height: calc(100vh - 4rem);
width: 100%;
}
diff --git a/src/pages/buy-sell/screens/BuySell/BuySell.tsx b/src/pages/buy-sell/screens/BuySell/BuySell.tsx
index fec79022..83e9c397 100644
--- a/src/pages/buy-sell/screens/BuySell/BuySell.tsx
+++ b/src/pages/buy-sell/screens/BuySell/BuySell.tsx
@@ -26,7 +26,7 @@ const BuySell = () => {
}
return (
-
+
{isAdvertiserBarred && }
diff --git a/src/pages/buy-sell/screens/BuySellTable/BuySellTable.scss b/src/pages/buy-sell/screens/BuySellTable/BuySellTable.scss
index dd6501d0..fbdc70bf 100644
--- a/src/pages/buy-sell/screens/BuySellTable/BuySellTable.scss
+++ b/src/pages/buy-sell/screens/BuySellTable/BuySellTable.scss
@@ -5,6 +5,7 @@
border-bottom: 1px solid #f2f3f4;
grid-template-columns: 2fr 1.4fr 1.4fr 2.4fr 0.8fr;
}
+
&__content {
overflow: auto;
padding-bottom: 2rem;
diff --git a/src/pages/guide/components/GuideTooltip/GuideTooltip.tsx b/src/pages/guide/components/GuideTooltip/GuideTooltip.tsx
index 899b4dc6..65d62540 100644
--- a/src/pages/guide/components/GuideTooltip/GuideTooltip.tsx
+++ b/src/pages/guide/components/GuideTooltip/GuideTooltip.tsx
@@ -11,8 +11,8 @@ import './GuideTooltip.scss';
// TODO: replace this with deriv/ui
const GuideTooltip = () => {
const history = useHistory();
- const [isGuideVisible, setIsGuideVisible] = useState
(
- LocalStorageUtils.getValue('should_show_p2p_guide') ?? null
+ const [isGuideVisible, setIsGuideVisible] = useState(
+ LocalStorageUtils.getValue('should_show_p2p_guide') ?? true
);
const onGetStarted = () => {
@@ -21,11 +21,8 @@ const GuideTooltip = () => {
};
useEffect(() => {
- if (isGuideVisible === null) {
- setIsGuideVisible(true);
- LocalStorageUtils.setValue('should_show_p2p_guide', true);
- }
- }, [isGuideVisible]);
+ LocalStorageUtils.setValue('should_show_p2p_guide', false);
+ }, []);
return isGuideVisible ? (
@@ -47,7 +44,9 @@ const GuideTooltip = () => {
setIsGuideVisible(false)}
+ onClick={() => {
+ setIsGuideVisible(false);
+ }}
/>
diff --git a/src/pages/guide/screens/Awareness/Awareness.tsx b/src/pages/guide/screens/Awareness/Awareness.tsx
index e245973d..b92cd0de 100644
--- a/src/pages/guide/screens/Awareness/Awareness.tsx
+++ b/src/pages/guide/screens/Awareness/Awareness.tsx
@@ -1,8 +1,5 @@
-//TODO: Replace these with Quill icons once ready
-import { ReactComponent as ScamAdvancePaymentIcon } from '@/assets/scam-advance-payment.svg';
-import { ReactComponent as ScamPotIcon } from '@/assets/scam-pot.svg';
-import { ReactComponent as ScamSmsIcon } from '@/assets/scam-sms.svg';
import { useLiveChat } from '@/hooks/custom-hooks';
+import { DerivDarkScamAdvancePaymentIcon, DerivDarkScamPotIcon, DerivDarkScamSmsIcon } from '@deriv/quill-icons';
import { Localize } from '@deriv-com/translations';
import { Text, useDevice } from '@deriv-com/ui';
import { Carousel } from '../../components';
@@ -25,7 +22,7 @@ const Awareness = () => {
),
- icon: ,
+ icon: ,
id: 0,
title: (
@@ -40,7 +37,7 @@ const Awareness = () => {
),
- icon: ,
+ icon: ,
id: 1,
title: (
@@ -66,7 +63,7 @@ const Awareness = () => {
/>
),
- icon: ,
+ icon: ,
id: 2,
title: (
diff --git a/src/pages/guide/screens/GettingStarted/GettingStarted.tsx b/src/pages/guide/screens/GettingStarted/GettingStarted.tsx
index 2ab6e049..8b0cf34b 100644
--- a/src/pages/guide/screens/GettingStarted/GettingStarted.tsx
+++ b/src/pages/guide/screens/GettingStarted/GettingStarted.tsx
@@ -1,10 +1,11 @@
-//TODO: Replace these with Quill icons once ready
-import { ReactComponent as FindAdIcon } from '@/assets/find-ad.svg';
-import { ReactComponent as PayUserIcon } from '@/assets/pay-user.svg';
-import { ReactComponent as ReceivePaymentIcon } from '@/assets/receive-payment.svg';
-import { ReactComponent as ReceivedFundIcon } from '@/assets/received-fund.svg';
-import { ReactComponent as ReleaseFundIcon } from '@/assets/release-fund.svg';
import { useLiveChat } from '@/hooks/custom-hooks';
+import {
+ DerivDarkFindAdIcon,
+ DerivDarkPayUserIcon,
+ DerivDarkReceivedFundIcon,
+ DerivDarkReceivePaymentIcon,
+ DerivDarkReleaseFundIcon,
+} from '@deriv/quill-icons';
import { Localize, useTranslations } from '@deriv-com/translations';
import { Tab, Tabs, Text } from '@deriv-com/ui';
import { Carousel } from '../../components';
@@ -25,7 +26,7 @@ const GettingStarted = () => {
),
- icon: ,
+ icon: ,
id: 0,
title: (
@@ -39,7 +40,7 @@ const GettingStarted = () => {
),
- icon: ,
+ icon: ,
id: 1,
title: (
@@ -64,7 +65,7 @@ const GettingStarted = () => {
/>
),
- icon: ,
+ icon: ,
id: 2,
title: (
@@ -85,7 +86,7 @@ const GettingStarted = () => {
),
- icon: ,
+ icon: ,
id: 0,
title: (
@@ -99,7 +100,7 @@ const GettingStarted = () => {
),
- icon: ,
+ icon: ,
id: 1,
title: (
@@ -113,7 +114,7 @@ const GettingStarted = () => {
),
- icon: ,
+ icon: ,
id: 2,
title: (
diff --git a/src/pages/my-ads/components/AdConditionsSection/AdCondtionsSection.scss b/src/pages/my-ads/components/AdConditionsSection/AdCondtionsSection.scss
index 9fd902e9..bb779cb6 100644
--- a/src/pages/my-ads/components/AdConditionsSection/AdCondtionsSection.scss
+++ b/src/pages/my-ads/components/AdConditionsSection/AdCondtionsSection.scss
@@ -6,7 +6,7 @@
@include mobile {
padding: 1.6rem;
- height: calc(100vh - 28rem);
+ height: calc(100vh - 20rem);
overflow: auto;
}
}
diff --git a/src/pages/my-ads/components/AdFormController/AdFormController.scss b/src/pages/my-ads/components/AdFormController/AdFormController.scss
index a8be08a2..4291fd2a 100644
--- a/src/pages/my-ads/components/AdFormController/AdFormController.scss
+++ b/src/pages/my-ads/components/AdFormController/AdFormController.scss
@@ -6,16 +6,6 @@
padding: 2rem 0;
margin-top: 2.4rem;
- @include mobile-or-tablet-screen {
- position: absolute;
- bottom: 8rem;
- right: 0;
- width: 100%;
- padding: 1.6rem;
- background: #ffffff;
- z-index: 1;
- }
-
@include mobile {
bottom: 7.5rem;
}
diff --git a/src/pages/my-ads/components/AdTypeSection/AdTypeSection.scss b/src/pages/my-ads/components/AdTypeSection/AdTypeSection.scss
index ea1c72e4..3b196072 100644
--- a/src/pages/my-ads/components/AdTypeSection/AdTypeSection.scss
+++ b/src/pages/my-ads/components/AdTypeSection/AdTypeSection.scss
@@ -4,10 +4,11 @@
margin-top: 0;
}
}
+
@include mobile-or-tablet-screen {
padding: 0 1.6rem;
overflow: auto;
- max-height: calc(100vh - 27rem);
+ max-height: calc(100vh - 20rem);
}
&--edit {
diff --git a/src/pages/my-ads/screens/MyAds/MyAds.tsx b/src/pages/my-ads/screens/MyAds/MyAds.tsx
index 95b4a811..00c9754a 100644
--- a/src/pages/my-ads/screens/MyAds/MyAds.tsx
+++ b/src/pages/my-ads/screens/MyAds/MyAds.tsx
@@ -1,11 +1,8 @@
-import clsx from 'clsx';
import { TemporarilyBarredHint, Verification } from '@/components';
import { useIsAdvertiserBarred, usePoiPoaStatus } from '@/hooks/custom-hooks';
-import { useDevice } from '@deriv-com/ui';
import { MyAdsTable } from './MyAdsTable';
const MyAds = () => {
- const { isDesktop } = useDevice();
const isAdvertiserBarred = useIsAdvertiserBarred();
const { data } = usePoiPoaStatus();
const { isPoaVerified, isPoiVerified } = data || {};
@@ -13,7 +10,7 @@ const MyAds = () => {
if (!isPoaVerified || !isPoiVerified) return ;
return (
-
+
{isAdvertiserBarred && }
diff --git a/src/pages/orders/screens/OrderDetails/OrderDetails.scss b/src/pages/orders/screens/OrderDetails/OrderDetails.scss
index c1be7905..f8e7515f 100644
--- a/src/pages/orders/screens/OrderDetails/OrderDetails.scss
+++ b/src/pages/orders/screens/OrderDetails/OrderDetails.scss
@@ -1,11 +1,11 @@
.order-details {
- overflow: overlay;
- height: calc(100vh - 27rem);
+ overflow: auto;
+ height: calc(100% - 27rem);
@include mobile-or-tablet-screen {
position: absolute;
top: 0;
- height: calc(100vh - 7rem);
+ height: calc(100% - 7rem);
& .mobile-wrapper {
&__header {
@@ -13,7 +13,7 @@
}
&__body {
- overflow-y: scroll;
+ overflow-y: auto;
}
&__footer {
diff --git a/src/pages/orders/screens/OrderDetails/OrderDetails.tsx b/src/pages/orders/screens/OrderDetails/OrderDetails.tsx
index 1d240296..1fbb9fef 100644
--- a/src/pages/orders/screens/OrderDetails/OrderDetails.tsx
+++ b/src/pages/orders/screens/OrderDetails/OrderDetails.tsx
@@ -119,6 +119,7 @@ const OrderDetails = () => {
)}
+ shouldFixedFooter={false}
>
{shouldShowLostFundsBanner && (
{
{isPast ? (
) : (
-
+
)}
}
diff --git a/src/pages/orders/screens/Orders/OrdersEmpty/__tests__/OrdersEmpty.spec.tsx b/src/pages/orders/screens/Orders/OrdersEmpty/__tests__/OrdersEmpty.spec.tsx
index 705cfee2..a60e2234 100644
--- a/src/pages/orders/screens/Orders/OrdersEmpty/__tests__/OrdersEmpty.spec.tsx
+++ b/src/pages/orders/screens/Orders/OrdersEmpty/__tests__/OrdersEmpty.spec.tsx
@@ -18,7 +18,7 @@ jest.mock('react-router-dom', () => ({
describe('OrdersEmpty', () => {
it('should render OrdersEmpty', () => {
render();
- expect(screen.getByText('You have no orders.')).toBeInTheDocument();
+ expect(screen.getByText('You have no active orders.')).toBeInTheDocument();
expect(screen.getByRole('button', { name: 'Buy/Sell' })).toBeInTheDocument();
});
it('should handle clicking on buy/sell button', async () => {
diff --git a/src/pages/orders/screens/Orders/OrdersTable/__tests__/OrdersTable.spec.tsx b/src/pages/orders/screens/Orders/OrdersTable/__tests__/OrdersTable.spec.tsx
index 156b147c..4c79019e 100644
--- a/src/pages/orders/screens/Orders/OrdersTable/__tests__/OrdersTable.spec.tsx
+++ b/src/pages/orders/screens/Orders/OrdersTable/__tests__/OrdersTable.spec.tsx
@@ -137,7 +137,7 @@ const mockUseDevice = useDevice as jest.Mock;
describe('OrdersTable', () => {
it('should render OrdersTable as expected with empty data', () => {
render();
- expect(screen.getByText('You have no orders.')).toBeInTheDocument();
+ expect(screen.getByText('You have no active orders.')).toBeInTheDocument();
});
it('should render the loader when isLoading', () => {
render();
diff --git a/src/pages/orders/screens/OrdersChatSection/OrdersChatSection.scss b/src/pages/orders/screens/OrdersChatSection/OrdersChatSection.scss
index b6791185..72e10260 100644
--- a/src/pages/orders/screens/OrdersChatSection/OrdersChatSection.scss
+++ b/src/pages/orders/screens/OrdersChatSection/OrdersChatSection.scss
@@ -16,10 +16,10 @@
&__full-page {
position: absolute;
- top: 8rem;
+ top: 0;
left: 0;
z-index: 1;
- height: calc(100vh - 9rem);
+ height: calc(100vh - 8rem);
& .mobile-wrapper {
&__body {
diff --git a/src/routes/AppContent/index.scss b/src/routes/AppContent/index.scss
index 51330d03..3855fe5b 100644
--- a/src/routes/AppContent/index.scss
+++ b/src/routes/AppContent/index.scss
@@ -1,4 +1,10 @@
+#root {
+ height: 100%;
+}
+
.app-content {
+ height: 100%;
+
&__body {
position: relative;
overflow: hidden;
@@ -14,7 +20,7 @@
@include mobile-or-tablet-screen {
max-width: 60rem;
- height: 100vh;
+ height: 100%;
}
}