diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-04-01 10:23:29 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-04-01 10:23:29 +0200 |
| commit | 0bede27de3bcc0c7f03d16c7607a0ae693daebc7 (patch) | |
| tree | 20646e82e6b608e452408ad1af24f70fa079387e /client/applet.js | |
| parent | fd5d46b71af450fb582506dc8dd9c8d343d3a5c5 (diff) | |
citations table in react
Diffstat (limited to 'client/applet.js')
| -rw-r--r-- | client/applet.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/client/applet.js b/client/applet.js index 21e1e4fa..db95168a 100644 --- a/client/applet.js +++ b/client/applet.js @@ -4,11 +4,12 @@ import { Container as FaceSearchContainer } from './faceSearch' import { Container as FaceAnalysisContainer } from './faceAnalysis' import { Container as NameSearchContainer } from './nameSearch' import { Container as DatasetListContainer } from './datasetList' +import { CitationsTable, FileTable } from './table' import { CountriesByYear, PieCharts } from './chart' export default class Applet extends Component { render() { - // console.log(this.props) + // console.log(this.props.payload.cmd) switch (this.props.payload.cmd) { case 'face_analysis': return <FaceAnalysisContainer {...this.props} /> @@ -22,6 +23,10 @@ export default class Applet extends Component { return <CountriesByYear {...this.props} /> case 'piechart': return <PieCharts {...this.props} /> + case 'citations': + return <CitationsTable {...this.props} /> + case 'load_file': + return <FileTable {...this.props} /> default: return <pre style={{ color: '#0f0' }}>{'Megapixels'}</pre> } |
