Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
logOut();
profileMenuState.close();
};
const throwException = () => {
throw new Error('Exception');
};
return (
<menu>
<menuitem>
Login
</menuitem>
<menuitem>
Sign Up
</menuitem></menu>
const Submenu = (props) => {
const popupState = usePopupState({ variant: 'popover' });
return (
<menu>
<menuitem>
</menuitem></menu>
if (scheduleIndex !== -1) {
addCourse(section, courseDetails, term, scheduleIndex);
}
};
return (
closeAndAddCourse(AppStore.getCurrentScheduleIndex())
}
className={classes.button}
>
<menu> closeAndAddCourse(-1)}
>
<menuitem> closeAndAddCourse(0)}>
Add to schedule 1
</menuitem>
<menuitem> closeAndAddCourse(1)}>
Add to schedule 2
</menuitem>
<menuitem> closeAndAddCourse(2)}>
Add to schedule 3
</menuitem>
<menuitem> closeAndAddCourse(3)}></menuitem></menu>
Lightmatter
{user && (
<div>
<span data-cy="logged-in-name">Hey {user.first_name}</span>
<menu id="menu-appbar">
<menuitem>
Profile
</menuitem>
<menuitem>
Change Password
</menuitem>
<menuitem>
Change Email
</menuitem>
<menuitem>
Delete Account
</menuitem></menu></div>