Skip to content

Commit 6d4018a

Browse files
committed
changed visibility of social icons with boolean value in the links
1 parent fa4ede7 commit 6d4018a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

components/layout/Footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default function Footer() {
3434
</nav>
3535
<div className={footerStyles.footer__socialIcons}>
3636
<ul className={footerStyles.footer__socialList}>
37-
{linksSocial.map(link => (
37+
{linksSocial.filter(link => link.isVisible).map(link => (
3838
<li className={footerStyles.footer__socialItem} key={link.text}>
3939
<Link href={link.href}>
4040
<a title={link.text} target='_blank'>

styles/Footer.module.scss

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@
7272
margin: revert;
7373
padding: 0;
7474

75-
li:first-child {
76-
display: none;
77-
}
78-
7975
@include tablet {
8076
justify-content: end;
8177
}

utils/links.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,20 @@ export const linksSocial = [
1515
text: 'LinkedIn',
1616
href: '#',
1717
src: '/images/svg/LinkedIn.svg',
18+
isVisible: false,
1819
},
1920
{
2021
id: 2,
2122
text: 'YouTube',
2223
href: 'https://www.youtube.com/channel/UCCLwmU7r4IUWZOtH3bCEN6g',
2324
src: '/images/svg/YouTube.svg',
25+
isVisible: true,
2426
},
2527
{
2628
id: 3,
2729
text: 'GitHub',
2830
href: 'https://github.com/Web-Dev-Path',
2931
src: '/images/svg/GitHub.svg',
32+
isVisible: true,
3033
},
3134
];

0 commit comments

Comments
 (0)