({ children, location })
| 3 | |
| 4 | /* 留言板 布局基页 */ |
| 5 | const MsgView = ({ children, location }) => ( |
| 6 | <div> |
| 7 | { !location.pathname.startsWith('/msg/add') && |
| 8 | <Link |
| 9 | className="btn btn-default btn-lg btn-block" |
| 10 | to="/msg/add"> |
| 11 | 添加消息 |
| 12 | <span className="glyphicon glyphicon-plus"></span> |
| 13 | </Link> |
| 14 | } |
| 15 | <br/> |
| 16 | { children } |
| 17 | </div> |
| 18 | ) |
| 19 | |
| 20 | export default MsgView |
nothing calls this directly
no outgoing calls
no test coverage detected