fix: add key prop to breadcrumb bar
This commit is contained in:
parent
a5372f226b
commit
3e4831e74d
|
@ -8,8 +8,10 @@ const BreadcrumbBar = ({ breadcrumbList }: BreadcrumbBarProps) => {
|
|||
return (
|
||||
<nav className="breadcrumb-bar-nav">
|
||||
<ul className="breadcrumb-bar-ul">
|
||||
{breadcrumbList.map(item => (
|
||||
<li className="breadcrumb-bar-li">{item}</li>
|
||||
{breadcrumbList.map((item, index) => (
|
||||
<li className="breadcrumb-bar-li" key={index}>
|
||||
{item}
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
</nav>
|
||||
|
|
Loading…
Reference in New Issue