fix errors
This commit is contained in:
parent
cf39b342e3
commit
c9781a0ced
|
@ -1,6 +1,8 @@
|
|||
import React from 'react';
|
||||
import {Navigate, Route, Routes} from "react-router-dom";
|
||||
import {privateRoutes, publicRoutes} from "../../router/index";
|
||||
import routes from "../../router";
|
||||
|
||||
const { publicRoutes } = routes;
|
||||
|
||||
const AppRouter = () => {
|
||||
return (
|
||||
|
|
|
@ -7,8 +7,11 @@ import Comparisons from "../pages/Сomparisons/Сomparisons";
|
|||
// {path: '/comparisons', component: Comparisons, exact: true},
|
||||
// ]
|
||||
|
||||
export const publicRoutes = [
|
||||
export default Object.freeze({
|
||||
publicRoutes: [
|
||||
{path: '/', component: <Favorites/>, exact: true},
|
||||
{path: '/favorites', component: <Favorites/>, exact: true},
|
||||
{path: '/comparisons', component: <Comparisons/>, exact: true},
|
||||
]
|
||||
],
|
||||
privateRoutes: []
|
||||
})
|
Loading…
Reference in New Issue