modules/stanford_events/pdb_components/mini-calendar/src/index.js
Function App
has 127 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function App() {
const apiUrl = '/jsonapi/node/stanford_event';
const currentDate = new Date();
const [anchorEl, setAnchorEl] = useState(null);
Function getEvents
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
async function getEvents(url, startDate, endDate) {
const filters = {status: 1};
if (startDate !== undefined) {
filters.startDate = {
condition: {