MCPcopy Create free account
hub / github.com/alephdata/aleph / render

Method render

ui/src/components/common/Statistics.jsx:86–106  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

84 };
85
86 render() {
87 const { headline, isPending, styleType } = this.props;
88 const content = isPending ? this.renderListSkeleton() : this.renderList();
89
90 return (
91 <div className={c('Statistics', Classes.CALLOUT, styleType)}>
92 {headline && (
93 <h5
94 className={c(
95 Classes.HEADING,
96 'Statistics__headline',
97 Classes.SKELETON && isPending
98 )}
99 >
100 {headline}
101 </h5>
102 )}
103 <ul className="Statistics__list">{content}</ul>
104 </div>
105 );
106 }
107}
108
109export default Statistics;

Callers

nothing calls this directly

Calls 1

renderListMethod · 0.80

Tested by

no test coverage detected