website/src/views/modules/ModuleTree.tsx
Function ModuleTreeComponent
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ModuleTreeComponent: React.FC<Props> = (props) => {
const { fulfillRequirements, prereqTree, moduleCode } = props;
return (
<>
Function Tree
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Tree: React.FC<TreeDisplay> = (props) => {
const { layer, node, isPrereq } = props;
const isConditional = typeof node !== 'string';
const { prefix, name } = nodeName(node);