MCPcopy Create free account
hub / github.com/parse-community/parse-dashboard / AppsMenu

Function AppsMenu

src/components/Sidebar/AppsMenu.react.js:16–43  ·  view source on GitHub ↗
({ apps, current, height, onSelect, onPinClick })

Source from the content-addressed store, hash-verified

14import baseStyles from 'stylesheets/base.scss';
15
16const AppsMenu = ({ apps, current, height, onSelect, onPinClick }) => (
17 <div style={{ height }} className={[styles.appsMenu, baseStyles.unselectable].join(' ')}>
18 <AppName
19 name={current.name}
20 onClick={onSelect.bind(null, current.slug)}
21 onPinClick={onPinClick}
22 />
23 <div className={styles.menuSection}>All Apps</div>
24 <div className={styles.appListContainer}>
25 {apps.map(app => {
26 if (app.slug === current.slug) {
27 return null;
28 }
29 return (
30 <Link
31 to={html`/apps/${app.slug}/browser`}
32 key={app.slug}
33 className={styles.menuRow}
34 onClick={onSelect.bind(null, current.slug)}
35 >
36 <span>{app.name}</span>
37 <AppBadge production={app.production} />
38 </Link>
39 );
40 })}
41 </div>
42 </div>
43);
44
45export default AppsMenu;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected