Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const ComponentMenuList = ({ menus, getOpenKeys }) => {
const nestedStyles = useJupiterNestedMenuListStyles();
const infoStyles = useMaterialInfoMenuItemStyles();
const toggleStyles = useMaterialToggleMenuItemStyles();
const { setOpened: setSidebarOpened } = useLayoutCtx();
return (
{({ location }) => {
const paths = location.pathname.split('/');
const lastPath = last(paths) || last(dropRight(paths));
return (
const ComponentMenuList = ({ menus, getOpenKeys }) => {
const nestedStyles = useJupiterNestedMenuListStyles();
const infoStyles = useMaterialInfoMenuItemStyles();
const toggleStyles = useMaterialToggleMenuItemStyles();
const { setOpened: setSidebarOpened } = useLayoutCtx();
return (
{({ location }) => {
const paths = location.pathname.split('/');
const lastPath = last(paths) || last(dropRight(paths));
return (
const ComponentMenuList = ({ menus, getOpenKeys }) => {
const nestedStyles = useJupiterNestedMenuListStyles();
const infoStyles = useMaterialInfoMenuItemStyles();
const toggleStyles = useMaterialToggleMenuItemStyles();
const { setOpened: setSidebarOpened } = useLayoutCtx();
return (
{({ location }) => {
const paths = location.pathname.split('/');
const lastPath = last(paths) || last(dropRight(paths));
return (
const MaterialNestedMenuList = () => {
const nestedStyles = useMaterialNestedMenuStyles();
const actionToggleStyles = useMaterialActionToggleItemStyles();
const infoStyles = useMaterialInfoMenuItemStyles();
return (
({
children: data.label,
classes: actionToggleStyles,
listItemProps: {
className: nestedStyles.menuItem,
classes: pick(infoStyles, ['root', 'focusVisible']),
},
const JupiterNestedMenuList = () => {
const nestedStyles = useJupiterNestedMenuListStyles();
const infoStyles = useMaterialInfoMenuItemStyles();
const toggleStyles = useMaterialToggleMenuItemStyles();
return (
({
children: data.label,
className: cx(
toggleStyles.root,
expanded && toggleStyles.expanded,
nestedStyles.menuItem
const EngagementCard = () => {
const cardStyles = useStyles();
const wideCardMediaStyles = useWideCardMediaStyles();
const fadeShadowStyles = useFadedShadowStyles();
const textCardContentStyles = useTextCardContent01Styles();
return (
classes={wideCardMediaStyles}
image={MOCK.natureImg}
/>
const EngagementCard = () => {
const cardStyles = useStyles();
const wideCardMediaStyles = useWideCardMediaStyles();
const fadeShadowStyles = useFadedShadowStyles();
const textCardContentStyles = useTextCardContent01Styles();
return (
classes={wideCardMediaStyles}
image={MOCK.natureImg}
/>
const EngagementCard = () => {
const cardStyles = useStyles();
const wideCardMediaStyles = useWideCardMediaStyles();
const fadeShadowStyles = useFadedShadowStyles();
const textCardContentStyles = useTextCardContent01Styles();
return (
classes={wideCardMediaStyles}
image={MOCK.natureImg}
/>
const WideCardMedia = () => {
const styles = useWideCardMediaStyles();
return (
// image={"src"}
classes={styles}
/>
);
};
const JupiterNestedMenuList = () => {
const nestedStyles = useJupiterNestedMenuListStyles();
const infoStyles = useMaterialInfoMenuItemStyles();
const toggleStyles = useMaterialToggleMenuItemStyles();
return (
({
children: data.label,
className: cx(
toggleStyles.root,
expanded && toggleStyles.expanded,
nestedStyles.menuItem
),