src/components/Main/Team/Team.tsx
Function Team
has 79 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Team(props: Props) {
const [team, setTeam] = useState([{'id': '', 'name': '', 'position': '', 'academicYear': '', 'headshot': {'url': ''}, 'linkedin': ''}]);
const [academicYear, setAcademicYear] = useState('');
const [boardYears, setBoardYears] = useState(['']);
Function fetchTeam
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const fetchTeam = async () => {
const { executiveMembers } = await request(
process.env.REACT_APP_GRAPHCMS_URL ? process.env.REACT_APP_GRAPHCMS_URL : "",
`
{