mirror of
https://github.com/modelec/modelec.club.git
synced 2026-01-18 16:37:30 +01:00
Bug fix with SocialNetwork component
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
background: var(--white);
|
||||
border-radius: 999px;
|
||||
overflow: hidden;
|
||||
justify-self: center;
|
||||
width: fit-content;
|
||||
box-shadow: var(--shadow);
|
||||
}
|
||||
.media-separator {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React from "react";
|
||||
import React, { Fragment } from "react";
|
||||
|
||||
import './socialnetwork.css';
|
||||
|
||||
@@ -24,12 +24,12 @@ export const SocialNetwork: React.FC<SocialNetworkProps> = ({ Icon, link, name }
|
||||
export const SocialNetworkList: React.FC<SocialNetworkListProps> = ({ networks }) => {
|
||||
return (
|
||||
<div className={"media-container"}>
|
||||
{networks.map((network, index) => (<>
|
||||
<SocialNetwork key={index} Icon={network.Icon} link={network.link} name={network.name} />
|
||||
{networks.map((network, index) => (<Fragment key={index}>
|
||||
<SocialNetwork Icon={network.Icon} link={network.link} name={network.name} />
|
||||
{index < (networks.length - 1) &&
|
||||
<hr className={'media-separator'} />
|
||||
}
|
||||
</>))}
|
||||
</Fragment>))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user