Skip to content

Commit

Permalink
Replaced with MAP
Browse files Browse the repository at this point in the history
  • Loading branch information
officiallygod committed Jan 2, 2023
1 parent b358103 commit 5ff64a1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/OnboardingSPA/components/MiniPreview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,14 @@ const MiniPreview = ({ title, desc, icon, socialData, isSocialFormOpen, setIsSoc
}

function socialIconList() {
var socialIconList = []
socialDataset.map( (socialInfo) => {
socialIconList.push(
return socialDataset.map( (socialInfo) => {
return (
<div key={socialInfo.image}
onClick={(e) => setIsSocialFormOpen(!isSocialFormOpen)}
className={`browser-content_social_icon ${socialInfo.url ? isValidUrl(socialInfo.url) || '--invalid-url' : '--no-url' }`}
style={{ backgroundImage: socialInfo.image }} />
)
})
return socialIconList;
)
})
}

return (
Expand Down

0 comments on commit 5ff64a1

Please sign in to comment.