Skip to content

Commit

Permalink
social links config changes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
ukorvl committed Aug 17, 2023
1 parent edb7401 commit fd16092
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 62 deletions.
46 changes: 0 additions & 46 deletions components/Menu/SocialLinksList.tsx

This file was deleted.

16 changes: 8 additions & 8 deletions components/SocialIcons/iconsConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
Expand Down
16 changes: 8 additions & 8 deletions components/TopMenu/topMenuCongif.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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};

0 comments on commit fd16092

Please sign in to comment.