website/src/views/venues/VenueList.tsx
Function VenueList
has 42 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const VenueList: React.FC<Props> = (props) => {
// Added during the horrible COVID-19 times to hide E-Learning venues
const physicalVenues = props.venues.filter((venue) => !venue.startsWith('E-Learn'));
const venueList = groupBy(physicalVenues, (venue) => venue.charAt(0).toUpperCase());
const sortedVenueList = sortBy(toPairs(venueList), ([key]) => key);