File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change 11{
22  "name" : " @coreui/react" 
3-   "version" : " 2.0.3 " 
3+   "version" : " 2.0.4 " 
44  "description" : " CoreUI React Bootstrap 4 components" 
55  "license" : " MIT" 
66  "author" : {
3838    "@coreui/icons" : " 0.2.0" 
3939    "classnames" : " ^2.2.6" 
4040    "core-js" : " ^2.5.7" 
41-     "prop-types" : " ^15.6.1 " 
41+     "prop-types" : " ^15.6.2 " 
4242    "react-perfect-scrollbar" : " ^1.1.1" 
4343    "react-router-dom" : " ^4.3.1" 
4444    "reactstrap" : " ^6.1.0" 
Original file line number Diff line number Diff line change 11import  React ,  {  Component  }  from  'react' ; 
2- import  {  Route ,  Link  }  from  'react-router-dom' ; 
2+ import  {  Route ,  Link ,   matchPath  }  from  'react-router-dom' ; 
33import  {  Breadcrumb ,  BreadcrumbItem  }  from  'reactstrap' ; 
44import  PropTypes  from  'prop-types' ; 
55import  classNames  from  'classnames' ; 
@@ -20,11 +20,8 @@ const getPaths = (pathname) => {
2020} ; 
2121
2222const  findRouteName  =  ( url )  =>  { 
23-   const  aroute  =  routes . find ( route  =>  route . path  ===  url ) ; 
24-   if  ( aroute  &&  aroute . name )  { 
25-     return  aroute . name ; 
26-   } 
27-   return  null ; 
23+   const  aroute  =  routes . find ( route  =>  matchPath ( url ,  { path : route . path ,  exact : route . exact } ) ) ; 
24+   return  ( aroute  &&  aroute . name )  ? aroute . name  : null 
2825} ; 
2926
3027const  BreadcrumbsItem  =  ( {  match } )  =>  { 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments