From 4ffe97ede84729c609bbb1c47b0376bfe20cd8ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cau=C3=AA=20Faleiros?= Date: Mon, 4 May 2026 16:01:42 -0300 Subject: [PATCH] fix: resolve TS2503 Cannot find namespace JSX in App.tsx --- src/App.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ;