Skip to content

Commit d9a06f5

Browse files
committed
chore: remove unnecessary div
1 parent 07d053c commit d9a06f5

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

web/src/pages/Home/Community/Element.tsx

+5-7
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const StyledLabel = styled.label`
2020
font-weight: 600;
2121
`;
2222

23-
const StyledA = styled(ExternalLink)`
23+
const StyledExternalLink = styled(ExternalLink)`
2424
display: flex;
2525
align-items: center;
2626
gap: 8px;
@@ -35,12 +35,10 @@ export interface IElement {
3535

3636
export const Element: React.FC<IElement> = ({ primaryText, title, link, Icon }) => (
3737
<Container>
38-
<div className="link-container">
39-
<StyledA to={link} target="_blank" rel="noopener noreferrer">
40-
{Icon && <Icon />}
41-
{title}
42-
</StyledA>
43-
</div>
38+
<StyledExternalLink to={link} target="_blank" rel="noopener noreferrer">
39+
{Icon && <Icon />}
40+
{title}
41+
</StyledExternalLink>
4442
{primaryText && <StyledLabel>{primaryText}</StyledLabel>}
4543
</Container>
4644
);

0 commit comments

Comments
 (0)