Skip to content

Commit

Permalink
replacing div with react fragment
Browse files Browse the repository at this point in the history
  • Loading branch information
yacineKahlerras committed Jul 9, 2023
1 parent 0d2540e commit 738d9bb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import Link from 'next/link';
import { useState, useEffect, useRef } from 'react';
import React, { useState, useEffect, useRef } from 'react';
import SubNavLink from '../../atoms/SubNavLink';
import Typography from '../../atoms/Typography';
import {
Expand Down Expand Up @@ -46,12 +46,12 @@ const NavDropdown = ({ title, isOpen = false, links }: NavDropdownProps) => {
<Options>
{links.map(({ text, href }, i) => {
return (
<div key={i}>
<React.Fragment key={i}>
<Link href={href} passHref>
<SubNavLink text={text} key={i} />
</Link>
{i === 0 && <hr style={{ width: '100%' }} />}
</div>
</React.Fragment>
);
})}
</Options>
Expand Down

0 comments on commit 738d9bb

Please sign in to comment.