({ apps, current, height, onSelect, onPinClick })
| 14 | import baseStyles from 'stylesheets/base.scss'; |
| 15 | |
| 16 | const 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 | |
| 45 | export default AppsMenu; |
nothing calls this directly
no outgoing calls
no test coverage detected