diff --git a/src/App.tsx b/src/App.tsx index b412249..49ee921 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -13,7 +13,7 @@ import { connect } from 'react-redux'; import { useEffect, useState } from 'react'; import Service from "./Service/index.tsx"; import Login from "./Login/Login.tsx"; - +import DashboardRoutes from "./Consumer/DashboardRoutes.tsx"; interface MapProps { user: any; @@ -21,7 +21,7 @@ interface MapProps { type: string } -const App = () => { +const App = ({ logged }: { logged?: boolean }) => { const [show, setShow] = useState(false); useEffect(() => { @@ -34,17 +34,23 @@ const App = () => { return (