index.js 622B

12345678910111213141516171819202122232425
  1. import React from 'react'
  2. import ReactDOM from 'react-dom'
  3. import AdminWorkspaceUser from './container/AdminWorkspaceUser.jsx'
  4. require('./css/index.styl')
  5. const appInterface = {
  6. name: 'admin_workspace_user',
  7. isRendered: false,
  8. renderAppFullscreen: data => {
  9. return ReactDOM.render(
  10. <AdminWorkspaceUser data={data} />
  11. , document.getElementById(data.config.domContainer)
  12. )
  13. },
  14. unmountApp: domId => {
  15. return ReactDOM.unmountComponentAtNode(document.getElementById(domId)) // returns bool
  16. }
  17. // renderAppPopupCreation: data => {
  18. // return null
  19. // }
  20. }
  21. module.exports = appInterface