chore: Update dependencies

This commit is contained in:
Maksim Eltyshev
2022-11-21 00:54:05 +01:00
parent 5381d45e50
commit b0d23373c0
22 changed files with 12561 additions and 15980 deletions

View File

@@ -2,10 +2,13 @@ import { matchPath } from 'react-router-dom';
export default (pathname, paths) => {
for (let i = 0; i < paths.length; i += 1) {
const match = matchPath(pathname, {
path: paths[i],
exact: true,
});
const match = matchPath(
{
path: paths[i],
end: true,
},
pathname,
);
if (match) {
return match;