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
+1 -1
View File
@@ -226,7 +226,7 @@ jobs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.PROJECT_TOKEN }}
password: ${{ secrets.PROJECT_TOKEN }} # yamllint disable-line rule:line-length
# Step 2: Pull the image we just built
- name: 📥 Pull Docker image
+1 -1
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();