mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 16:23:06 +10:00
list key fix, qoc
This commit is contained in:
@ -1,6 +1,5 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/20/solid";
|
import { ChevronLeftIcon, ChevronRightIcon } from "@heroicons/react/20/solid";
|
||||||
import { NEXT_PUBLIC_WEBAPP_URL } from "@documenso/lib";
|
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
|
|
||||||
export function Breadcrumb(props: any) {
|
export function Breadcrumb(props: any) {
|
||||||
@ -25,17 +24,16 @@ export function Breadcrumb(props: any) {
|
|||||||
<nav className="hidden sm:flex" aria-label="Breadcrumb">
|
<nav className="hidden sm:flex" aria-label="Breadcrumb">
|
||||||
<ol role="list" className="flex items-center space-x-4">
|
<ol role="list" className="flex items-center space-x-4">
|
||||||
{props?.items.map((item: any, index: number) => (
|
{props?.items.map((item: any, index: number) => (
|
||||||
<React.Fragment>
|
<React.Fragment key={item.href}>
|
||||||
{index > 0 ? (
|
{index > 0 ? (
|
||||||
<ChevronRightIcon
|
<ChevronRightIcon
|
||||||
key={item.href}
|
|
||||||
className="h-5 w-5 flex-shrink-0 text-gray-400"
|
className="h-5 w-5 flex-shrink-0 text-gray-400"
|
||||||
aria-hidden="true"
|
aria-hidden="true"
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
""
|
""
|
||||||
)}
|
)}
|
||||||
<li key={item.href}>
|
<li>
|
||||||
<div className="flex">
|
<div className="flex">
|
||||||
<Link
|
<Link
|
||||||
href={item.href}
|
href={item.href}
|
||||||
|
|||||||
Reference in New Issue
Block a user