MCPcopy Create free account
hub / github.com/Nealyang/React-Express-Blog-Demo / render

Method render

app/components/adminMenu/AdminMenu.js:16–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14 }
15
16 render() {
17 return (
18 <div>
19 <Menu
20 selectedKeys={[this.props.url]}
21 mode="inline"
22 theme="dark"
23 onClick={({key}) => {
24 this.props.changeUrl(key);
25 this.props.history.push(`/admin${key}`)
26 }}
27 >
28 {
29 menus.map((item, index) =>
30 <Menu.Item key={item.url} >
31 <Icon type={item.iconType}/>
32 <span>{item.name}</span>
33 </Menu.Item>)
34 }
35
36 </Menu>
37 </div>
38 )
39 }
40
41}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected