From 4995004b8472a3da65f508e0f7211e24c50d5322 Mon Sep 17 00:00:00 2001 From: pure-js <3690368+pure-js@users.noreply.github.com> Date: Tue, 26 Sep 2023 02:08:54 +0400 Subject: [PATCH] style: fix lint errors --- src/components/Breadcrumbs.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Breadcrumbs.tsx b/src/components/Breadcrumbs.tsx index 88d6d1bb..82b94608 100644 --- a/src/components/Breadcrumbs.tsx +++ b/src/components/Breadcrumbs.tsx @@ -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 @@ -14,6 +14,7 @@ export function Breadcrumbs() { return (
    {crumbs.map((crumb, index) => ( + // eslint-disable-next-line react/no-array-index-key
  1. {crumb}
  2. ))}