mirror of
https://github.com/documenso/documenso.git
synced 2025-11-16 17:51:49 +10:00
Update prettier styling
This commit is contained in:
@ -7,9 +7,14 @@ export function Breadcrumb(props: any) {
|
||||
<>
|
||||
<nav className="sm:hidden" aria-label="Back">
|
||||
<Link
|
||||
href={props.items.length > 1 ? props.items[props.items.length - 2].href : props.items[0].href}
|
||||
href={
|
||||
props.items.length > 1 ? props.items[props.items.length - 2].href : props.items[0].href
|
||||
}
|
||||
className="flex items-center text-sm font-medium text-gray-500 hover:text-gray-700">
|
||||
<ChevronLeftIcon className="-ml-1 mr-1 h-5 w-5 flex-shrink-0 text-gray-400" aria-hidden="true" />
|
||||
<ChevronLeftIcon
|
||||
className="-ml-1 mr-1 h-5 w-5 flex-shrink-0 text-gray-400"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
Back
|
||||
</Link>
|
||||
</nav>
|
||||
@ -18,13 +23,18 @@ export function Breadcrumb(props: any) {
|
||||
{props?.items.map((item: any, index: number) => (
|
||||
<React.Fragment key={item.href}>
|
||||
{index > 0 ? (
|
||||
<ChevronRightIcon className="h-5 w-5 flex-shrink-0 text-gray-400" aria-hidden="true" />
|
||||
<ChevronRightIcon
|
||||
className="h-5 w-5 flex-shrink-0 text-gray-400"
|
||||
aria-hidden="true"
|
||||
/>
|
||||
) : (
|
||||
""
|
||||
)}
|
||||
<li>
|
||||
<div className="flex">
|
||||
<Link href={item.href} className="text-sm font-medium text-gray-500 hover:text-gray-700">
|
||||
<Link
|
||||
href={item.href}
|
||||
className="text-sm font-medium text-gray-500 hover:text-gray-700">
|
||||
{item.title}
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user