KiDxS / GateKeeper

Validation of JSX maximum depth JS-0415
Anti-pattern
Minor
7 occurrences in this check
JSX tree is too deeply nested. Found 6 levels of nesting
 60    };
 61
 62    return (
 63        <AuthProvider> 64            <Navbar />
 65            <Container maxW="container.xl">
 66                <SimpleGrid
JSX tree is too deeply nested. Found 7 levels of nesting
 89        }
 90    };
 91    return (
 92        <LoadingScreen> 93            <Navbar />
 94
 95            <Container>
JSX tree is too deeply nested. Found 8 levels of nesting
63    });
64
65    return (
66        <LoadingScreen>67            <AuthProvider>
68                <Navbar />
69                <Container maxW="6xl" mt={6}>
JSX tree is too deeply nested. Found 5 levels of nesting
46
47    const labels = data.map((keypair) => {
48        return (
49            <Tr>50                <Td>{keypair.label}</Td>
51                <Td>
52                    <Stack spacing={2} direction="row">
JSX tree is too deeply nested. Found 9 levels of nesting
 82        }
 83    };
 84    return (
 85        <AuthProvider> 86            <Box>
 87                <Navbar />
 88                <Container>
JSX tree is too deeply nested. Found 6 levels of nesting
31        onSuccess: () => queryClient.invalidateQueries("keypairs"),
32    });
33    return (
34        <>35            <Button onClick={onOpen} variant="solid" colorScheme="red">
36                Delete
37            </Button>
JSX tree is too deeply nested. Found 9 levels of nesting
 45        
 46    };
 47    return (
 48        <> 49            <Button onClick={onOpen} colorScheme="blue" size="lg">
 50                Create new
 51            </Button>