fix: update RequireAuth component to accept ReactNode as children type

This commit is contained in:
Wikid82
2025-11-20 01:22:48 -05:00
parent 24711cbf28
commit f166007e3f
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react';
import { Navigate, useLocation } from 'react-router-dom';
import { useAuth } from '../context/AuthContext';
const RequireAuth: React.FC<{ children: JSX.Element }> = ({ children }) => {
const RequireAuth: React.FC<{ children: React.ReactNode }> = ({ children }) => {
const { isAuthenticated, isLoading } = useAuth();
const location = useLocation();