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

Commit

Permalink
Merge pull request #270 from deriv-com/nuzhy/show-eu-modal-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsen-deriv authored Dec 18, 2023
2 parents 906aaee + 925cbb2 commit bbed10e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
7 changes: 6 additions & 1 deletion libs/blocks/src/lib/footer/footer.social.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ export const SocialMediaSection = ({
return (
<div className="flex gap-gap-lg max-lg:justify-center">
{socialButtons.map((item) => (
<CustomLink href={item.href} target="_blank" key={item.href}>
<CustomLink
href={item.href}
target="_blank"
show_eu_modal={true}
key={item.href}
>
{item.icon}
</CustomLink>
))}
Expand Down
11 changes: 6 additions & 5 deletions libs/blocks/src/lib/footer/main.nav.content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@ export const MainNavContent = ({
layer.type === 'link' ? (
<div className="flex w-full flex-col gap-gap-lg" key={layer.id}>
<Heading.H6>{layer.header}</Heading.H6>
{layer.items.map((link) => (
{layer.items.map(({ id, href, target, text, ...rest }) => (
<div
className="flex flex-col items-start gap-gap-lg"
key={link.id}
key={id}
>
<CustomLink
size="sm"
href={link.href}
href={href}
className="text-typography-prominent"
target={link.target}
target={target}
{...rest}
>
{link.text}
{text}
</CustomLink>
</div>
))}
Expand Down
1 change: 1 addition & 0 deletions libs/components/src/lib/link/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface CustomLinkProps extends HTMLAttributes<HTMLAnchorElement> {
disabled?: boolean;
iconColor?: iconColorVariant;
target?: '_blank' | '_self' | '_parent' | '_top';
show_eu_modal?: boolean;
}
export type iconColorVariant = 'black' | 'subtle' | 'disabled' | 'default';
export type textSize = 'sm' | 'md' | 'lg';
Expand Down

0 comments on commit bbed10e

Please sign in to comment.