diff --git a/src/App.tsx b/src/App.tsx index 6cae9fa..2afe76f 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,3 +1,4 @@ +import React from 'react'; import { Routes, Route, Navigate, useLocation } from 'react-router-dom'; import Layout from './components/Layout'; import Dashboard from './pages/Dashboard'; @@ -8,7 +9,7 @@ import ClientDetails from './pages/ClientDetails'; import Login from './pages/Login'; import { isAuthenticated } from './dataService'; -function PrivateRoute({ children }: { children: JSX.Element }) { +function PrivateRoute({ children }: { children: React.ReactNode }) { const location = useLocation(); if (!isAuthenticated()) { return ;