mirror of
https://github.com/Stone-Red-Code/website.git
synced 2026-09-08 16:06:13 +02:00
style: fix lint issues
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import React from "react"
|
||||
|
||||
import { IFileOrFolder } from "../ResourcesSidebar/index"
|
||||
import ChevronUp from "../../icons/chevron-up.svg"
|
||||
import { traversePaths } from "../../utils"
|
||||
import { IFileOrFolder } from "../ResourcesSidebar/index"
|
||||
import * as SC from "./styles"
|
||||
|
||||
interface ResourceBreadcrumbProps {
|
||||
interface IResourceBreadcrumbProps {
|
||||
relativePath: any
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ function flatten([
|
||||
return flatten([...currNode.children, ...previousNodes, currNode])
|
||||
}
|
||||
|
||||
export function ResourceBreadcrumb({ relativePath }: ResourceBreadcrumbProps) {
|
||||
export function ResourceBreadcrumb({ relativePath }: IResourceBreadcrumbProps) {
|
||||
const paths = relativePath.split("/")
|
||||
const breadcrumbItems = flatten([traversePaths(paths)])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user