diff options
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> + } } } |
