From 6285b393165fe1f942a1dbb3d2f83d0fae1e5bf2 Mon Sep 17 00:00:00 2001 From: prince-deriv Date: Wed, 15 Nov 2023 16:19:14 +0400 Subject: [PATCH] fix: faq image padding and faq pages header padding --- .../help-center/sections/answers/index.tsx | 1 + .../sections/search/components.tsx | 11 ++++++- .../lib/help-center/sections/search/data.tsx | 29 ++++++++++++------- 3 files changed, 29 insertions(+), 12 deletions(-) diff --git a/libs/templates/src/lib/help-center/sections/answers/index.tsx b/libs/templates/src/lib/help-center/sections/answers/index.tsx index 7fdcde3a2..0591c4774 100644 --- a/libs/templates/src/lib/help-center/sections/answers/index.tsx +++ b/libs/templates/src/lib/help-center/sections/answers/index.tsx @@ -22,6 +22,7 @@ const AnswerSection = ({ header, questions, answers }: FAQDataType) => { content={{ data: accordionItems, }} + className="p-general-none" /> ); diff --git a/libs/templates/src/lib/help-center/sections/search/components.tsx b/libs/templates/src/lib/help-center/sections/search/components.tsx index f6764a48e..f3c80fea8 100644 --- a/libs/templates/src/lib/help-center/sections/search/components.tsx +++ b/libs/templates/src/lib/help-center/sections/search/components.tsx @@ -1,4 +1,9 @@ -import { CustomLink, CustomLinkProps } from '@deriv-com/components'; +import { + CustomLink, + CustomLinkProps, + OptimizedImage, + OptimizedImageProps, +} from '@deriv-com/components'; import { Text, qtMerge, BodyTypographyProps } from '@deriv/quill-design'; import { PropsWithChildren, ReactNode } from 'react'; @@ -74,3 +79,7 @@ export const FaqList = ({ ))} ); + +export const FaqImage = ({ ...otherProps }: OptimizedImageProps) => ( + +); diff --git a/libs/templates/src/lib/help-center/sections/search/data.tsx b/libs/templates/src/lib/help-center/sections/search/data.tsx index 0a3afe358..267ab2503 100644 --- a/libs/templates/src/lib/help-center/sections/search/data.tsx +++ b/libs/templates/src/lib/help-center/sections/search/data.tsx @@ -1,9 +1,16 @@ -import { CardContent, OptimizedImage } from '@deriv-com/components'; +import { CardContent } from '@deriv-com/components'; import { FAQDataType } from '../../types'; import { cardSetting, faqCardsMaxItems } from './types'; -import { FaqBox, FaqLink, FaqList, FaqText, generateFaqs } from './components'; +import { + FaqBox, + FaqLink, + FaqList, + FaqText, + FaqImage, + generateFaqs, +} from './components'; export const FAQData: FAQDataType[] = [ { @@ -834,7 +841,7 @@ export const FAQData: FAQDataType[] = [ On the Trader’s Hub, hit{' '} Open next to your Deriv MT5 account. - , Hit the pencil icon next the password. - - , Hit the pencil icon next the password. - - Trader’s Hub, hit{' '} Open next to your Deriv MT5 account. - , Hit the pencil icon next to the password. - On the next screen, select Investor password. - Open next to your Deriv MT5 account and find the server below the broker name. -