diff --git a/libs/blocks/src/lib/footer/footer.social.tsx b/libs/blocks/src/lib/footer/footer.social.tsx index 3244c05d7..c200326b2 100644 --- a/libs/blocks/src/lib/footer/footer.social.tsx +++ b/libs/blocks/src/lib/footer/footer.social.tsx @@ -1,5 +1,5 @@ +import { CustomLink } from '@deriv-com/components'; import { SocialIcons } from './footer-block'; -import React from 'react'; export const SocialMediaSection = ({ socialButtons, @@ -9,7 +9,9 @@ export const SocialMediaSection = ({ return (
{socialButtons.map((item) => ( - {item.icon} + + {item.icon} + ))}
); diff --git a/libs/components/src/lib/link/index.tsx b/libs/components/src/lib/link/index.tsx index 4e5fa0391..efa706229 100644 --- a/libs/components/src/lib/link/index.tsx +++ b/libs/components/src/lib/link/index.tsx @@ -13,6 +13,7 @@ export interface CustomLinkProps extends HTMLAttributes { hasLinkColor?: boolean; disabled?: boolean; iconColor?: iconColorVariant; + target?: '_blank' | '_self' | '_parent' | '_top'; } export type iconColorVariant = 'black' | 'subtle' | 'disabled' | 'default'; export type textSize = 'sm' | 'md' | 'lg'; @@ -34,6 +35,7 @@ export function CustomLink({ hasHoverDecoration = true, hasLinkColor = false, disabled = false, + target = '_self', children, ...rest }: CustomLinkProps) { @@ -42,6 +44,7 @@ export function CustomLink({ return ( , - href: '/fb', + href: 'https://www.facebook.com/derivdotcom', }, { icon: , - href: '/insta', + href: 'https://www.instagram.com/deriv_official', }, { icon: , - href: '/twitter', + href: 'https://twitter.com/derivdotcom/', }, { icon: , - href: '/youtube', + href: 'https://www.youtube.com/@deriv', }, { icon: , - href: '/linkedin', + href: 'https://www.linkedin.com/company/derivdotcom/', }, { icon: , - href: '/telegram', + href: 'https://t.me/derivdotcomofficial', }, ];