src/routes/routes.tsx
Function Navigation
has 348 lines of code (exceeds 200 allowed). Consider refactoring. Open
Open
function Navigation() {
const roleName = localStorage.getItem("roleName");
return (
<Routes>
{/* Public Routes */}
File routes.tsx
has 406 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import React from "react";
import { HashRouter as Router, Routes, Route, Link, Navigate } from "react-router-dom";
import TestTailwind from "./../components/TestTailwind";
import TrainneeDetails from "./../pages/TrainneeDetails";
import TrainneeDetailsB from "./../pages/TrainneDetailsB";