Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

Commit

Permalink
fix: merged main
Browse files Browse the repository at this point in the history
  • Loading branch information
meenu-deriv committed Nov 10, 2023
2 parents 6eae083 + 794ac4a commit 4393682
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,23 @@ export const SearchResults = ({ onSearchKeyChange }: SearchResultsProps) => {
<Text size="lg" bold className="w-full break-all py-general-xl">
Results for “{searchKey}
</Text>

<div className="flex flex-col gap-general-lg pb-general-2xl">
{results.map(({ header, questions }) =>
questions.map((question) => {
return (
<CustomLink
key={question}
href={getHelpCentreLink(header, question)}
className="justify-start"
>
{question}
</CustomLink>
);
}),
)}
</div>
{results.length > 0 && (
<div className="flex flex-col gap-general-lg pb-general-2xl">
{results.map(({ header, questions }) =>
questions.map((question) => {
return (
<CustomLink
key={question}
href={getHelpCentreLink(header, question)}
className="justify-start"
>
{question}
</CustomLink>
);
}),
)}
</div>
)}

{!results.length && searchKey && (
<div className="flex w-full justify-center py-general-2xl">
Expand Down
2 changes: 1 addition & 1 deletion libs/templates/src/lib/home/sections/cta/data.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const CTABlockContent = () => {
className="lg:gap-gap-lg"
align="start"
size="lg"
header="Join over 2.5 million online traders"
header="Join over 2.5 million online traders worldwide"
color="gray"
content={
<OptimizedImage
Expand Down

0 comments on commit 4393682

Please sign in to comment.