chore: clean-up
This commit is contained in:
parent
632c849fa7
commit
0f6f87b0c0
@ -8,7 +8,6 @@ import { CBreadcrumb, CBreadcrumbItem } from '@coreui/react'
|
|||||||
const AppBreadcrumb = () => {
|
const AppBreadcrumb = () => {
|
||||||
const currentLocation = useLocation().pathname
|
const currentLocation = useLocation().pathname
|
||||||
|
|
||||||
//array1.find(element => element > 10);
|
|
||||||
const getRouteName = (pathname, routes) => {
|
const getRouteName = (pathname, routes) => {
|
||||||
const currentRoute = routes.find((route) => route.path === pathname)
|
const currentRoute = routes.find((route) => route.path === pathname)
|
||||||
return currentRoute.name
|
return currentRoute.name
|
||||||
|
Loading…
Reference in New Issue
Block a user