diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-12-16 20:01:23 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-12-16 20:01:23 +0100 |
| commit | 76f36c6c5dafe754b066903b1ee8ecdd1b92dcab (patch) | |
| tree | 374deb919344611e642c83926dd36a12f31f709a /client/applet.js | |
| parent | 6431d06048791763f3644b3a0457cc9c4f1df6d3 (diff) | |
faceSearch client
Diffstat (limited to 'client/applet.js')
| -rw-r--r-- | client/applet.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/client/applet.js b/client/applet.js index f218a7f2..4d2a8e6c 100644 --- a/client/applet.js +++ b/client/applet.js @@ -1,13 +1,15 @@ import React, { Component } from 'react' -// import { Header, Sidebar, Footer } from './common' +import { Container as FaceSearchContainer } from './faceSearch' export default class Applet extends Component { render() { - return ( - <div className='applet'> - <pre style={{ color: '#0f0' }}>{'Megapixels'}</pre> - </div> - ) + console.log(this.props) + switch (this.props.payload.cmd) { + case 'face_search': + return <FaceSearchContainer {...this.props} /> + default: + return <pre style={{ color: '#0f0' }}>{'Megapixels'}</pre> + } } } |
