Skip to content

Commit

Permalink
style: fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pure-js committed Sep 25, 2023
1 parent 07f01fc commit 4995004
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Breadcrumbs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { useMatches } from "react-router-dom";

import classes from './breadcrumbs.module.css';

export function Breadcrumbs() {
function Breadcrumbs() {
const matches = useMatches();
const crumbs = matches
// first get rid of any matches that don't have handle and crumb
Expand All @@ -14,6 +14,7 @@ export function Breadcrumbs() {
return (
<ol className={classes.breadcrumbs}>
{crumbs.map((crumb, index) => (
// eslint-disable-next-line react/no-array-index-key
<li className={classes.crumb} key={index}>{crumb}</li>
))}
</ol>
Expand Down

0 comments on commit 4995004

Please sign in to comment.