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