MCPcopy Create free account
hub / github.com/Lobos/react-ui / render

Method render

src/Message.js:73–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71 }
72
73 render () {
74 let items = this.props.messages.map((msg, i) => {
75 return (
76 <Item key={i} index={i} ref={i} onDismiss={this.dismiss} {...msg} />
77 );
78 });
79
80 let className = classnames(
81 this.props.className,
82 'rct-message-container',
83 { 'has-message': this.props.messages.length > 0 }
84 );
85
86 return (
87 <div className={className}>
88 <Overlay onClick={this.clear} />
89 {items}
90 </div>
91 );
92 }
93}
94
95Message.propTypes = {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected