UNPKG

cluedin-widget

Version:

This project contains all the pages needed for browsing entities and searching them. The aim is to replace the CluedIn.Webapp project with this one when all the pages ( including the Admin page ) will be ported to REACT.

36 lines (32 loc) 747 B
import React, { Component } from 'react'; import Radium from 'radium'; class EntityDate extends Component { render() { const { entity } = this.props; let content; if (entity.data.modifiedDateFormatted) { content = ( <span> {entity.data.modifiedDateFormatted} </span>); } else if (entity.data.createdDateFormatted) { content = ( <span> {entity.data.createdDateFormatted} </span>); } else if (entity.data.discoveryDate) { content = ( <span> {entity.data.discoveryDate} </span>); } else { content = void 0; } return ( <span> {content} </span> ); } } export default Radium(EntityDate);