MCPcopy Create free account
hub / github.com/async-labs/async / render

Method render

app/components/settings/SettingsMenu.tsx:17–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16class 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
55export default withRouter<Props>(observer(SettingsMenu));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected