Example #1
0
 renderMsg(fStoryObject, msg0, level) {
   let msg = doQuickFind(msg0, this.props.quickFind);
   if (level >= constants.LEVEL_STR_TO_NUM.ERROR) {
     msg = chalk.red.bold(msg);
   } else if (level >= constants.LEVEL_STR_TO_NUM.WARN) {
     msg = chalk.red.yellow(msg);
   }
   if (!fStoryObject) return <ColoredText text={msg} />;
   return (
     <ColoredText
       text={msg}
       onClick={this.props.onToggleExpanded}
       style={styleLine.title}
     />
   );
 }