diff --git a/components/Menu/SocialLinksList.tsx b/components/Menu/SocialLinksList.tsx deleted file mode 100644 index 919fb6b..0000000 --- a/components/Menu/SocialLinksList.tsx +++ /dev/null @@ -1,46 +0,0 @@ -import {memo} from 'react'; -import clsx from 'clsx'; -import UniservsalLink from '../UniservsalLink/UniservsalLink'; - -const {NEXT_PUBLIC_FACEBOOK_ADDRESS, NEXT_PUBLIC_INSTAGRAM_ADDRESS, NEXT_PUBLIC_TELEGRAM_ADDRESS} = - process.env; - -const linksConfig = [ - { - title: 'Facebook', - href: NEXT_PUBLIC_FACEBOOK_ADDRESS, - }, - { - title: 'Instagram', - href: NEXT_PUBLIC_INSTAGRAM_ADDRESS, - }, - { - title: 'Telegram', - href: NEXT_PUBLIC_TELEGRAM_ADDRESS, - }, -] as const; - -const linkCn = 'animated-link'; -const containerCn = clsx('flex', 'justify-center', 'gap-16', 'w-full'); - -/** - * @returns React component. - */ -function SocialLinksList() { - return ( -
- {linksConfig.map(({title, href}) => ( - - {title.toUpperCase()} - - ))} -
- ); -} - -export default memo(SocialLinksList); diff --git a/components/SocialIcons/iconsConfig.ts b/components/SocialIcons/iconsConfig.ts index 28917b8..021a3d2 100644 --- a/components/SocialIcons/iconsConfig.ts +++ b/components/SocialIcons/iconsConfig.ts @@ -20,26 +20,26 @@ const { */ const iconsConfig: IconConfig[] = [ { - icon: faFacebook, - href: NEXT_PUBLIC_FACEBOOK_ADDRESS ?? '', + icon: faInstagram, + href: NEXT_PUBLIC_INSTAGRAM_ADDRESS ?? '', size: '2x', target: '_blank', }, { - icon: faInstagram, - href: NEXT_PUBLIC_INSTAGRAM_ADDRESS ?? '', + icon: faTelegram, + href: NEXT_PUBLIC_TELEGRAM_ADDRESS ?? '', size: '2x', target: '_blank', }, { - icon: faWhatsapp, - href: NEXT_PUBLIC_WHATSAPP_ADDRESS ?? '', + icon: faFacebook, + href: NEXT_PUBLIC_FACEBOOK_ADDRESS ?? '', size: '2x', target: '_blank', }, { - icon: faTelegram, - href: NEXT_PUBLIC_TELEGRAM_ADDRESS ?? '', + icon: faWhatsapp, + href: NEXT_PUBLIC_WHATSAPP_ADDRESS ?? '', size: '2x', target: '_blank', }, diff --git a/components/TopMenu/topMenuCongif.ts b/components/TopMenu/topMenuCongif.ts index f33e944..cc666d3 100644 --- a/components/TopMenu/topMenuCongif.ts +++ b/components/TopMenu/topMenuCongif.ts @@ -32,22 +32,22 @@ const menuItemsConfig = [ ] as const; const socialLinksConfig = [ - { - href: NEXT_PUBLIC_FACEBOOK_ADDRESS ?? '', - text: 'Facebook', - }, { href: NEXT_PUBLIC_INSTAGRAM_ADDRESS ?? '', text: 'Instagram', }, - { - href: NEXT_PUBLIC_WHATSAPP_ADDRESS ?? '', - text: 'Whatsapp', - }, { href: NEXT_PUBLIC_TELEGRAM_ADDRESS ?? '', text: 'Telegram', }, + { + href: NEXT_PUBLIC_FACEBOOK_ADDRESS ?? '', + text: 'Facebook', + }, + { + href: NEXT_PUBLIC_WHATSAPP_ADDRESS ?? '', + text: 'Whatsapp', + }, ] as const; export {menuItemsConfig, socialLinksConfig};