()
| 15 | |
| 16 | class SettingsMenu extends React.Component<Props> { |
| 17 | public render() { |
| 18 | const { router, store, teamId, arrayOfMenuItems } = this.props; |
| 19 | const { pathname } = router; |
| 20 | |
| 21 | return ( |
| 22 | <div> |
| 23 | {arrayOfMenuItems.map((i) => ( |
| 24 | <div key={i.href}> |
| 25 | {i.href.includes('/team-settings') ? ( |
| 26 | <p style={{ textAlign: 'center', marginTop: '20px', marginBottom: '25px' }}> |
| 27 | Team Settings |
| 28 | </p> |
| 29 | ) : null} |
| 30 | {i.text === 'My Account' ? ( |
| 31 | <> |
| 32 | <p style={{ textAlign: 'center', marginTop: '20px', marginBottom: '25px' }}> |
| 33 | My Settings |
| 34 | </p> |
| 35 | </> |
| 36 | ) : null} |
| 37 | |
| 38 | <SidebarListItem |
| 39 | store={store} |
| 40 | isSelected={pathname.includes(i.as.split('settings/')[1])} |
| 41 | href={i.href} |
| 42 | as={i.as} |
| 43 | text={i.text} |
| 44 | key={i.href} |
| 45 | isMobile={this.props.isMobile} |
| 46 | teamId={teamId} |
| 47 | /> |
| 48 | </div> |
| 49 | ))} |
| 50 | </div> |
| 51 | ); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | export default withRouter<Props>(observer(SettingsMenu)); |
nothing calls this directly
no outgoing calls
no test coverage detected