Commit a5a97d61 authored by Alexandros Georgantas's avatar Alexandros Georgantas
Browse files

refactor(app): template modals

parent a01456db
...@@ -21,7 +21,8 @@ import UnlockModal from 'pubsweet-component-bookbuilder/src/ui/src/modals/Unlock ...@@ -21,7 +21,8 @@ import UnlockModal from 'pubsweet-component-bookbuilder/src/ui/src/modals/Unlock
import MetadataModal from 'pubsweet-component-bookbuilder/src/ui/src/modals/MetadataModal' import MetadataModal from 'pubsweet-component-bookbuilder/src/ui/src/modals/MetadataModal'
import WorkflowModal from 'pubsweet-component-bookbuilder/src/ui/src/modals/WorkflowModal' import WorkflowModal from 'pubsweet-component-bookbuilder/src/ui/src/modals/WorkflowModal'
import UnlockedModal from 'pubsweet-component-wax/src/modals/UnlockedModal' import UnlockedModal from 'pubsweet-component-wax/src/modals/UnlockedModal'
import CreateTemplateModal from 'pubsweet-component-editoria-templates/src/ui/src/modals/CreateTemplateModal' import CreateTemplateModal from 'pubsweet-component-editoria-templates/src/ui/src/modals/TemplateModal'
import UpdateTemplateModal from 'pubsweet-component-editoria-templates/src/ui/src/modals/ConnectedUpdateTemplateModal'
import DeleteTemplateModal from 'pubsweet-component-editoria-templates/src/ui/src/modals/DeleteTemplateModal' import DeleteTemplateModal from 'pubsweet-component-editoria-templates/src/ui/src/modals/DeleteTemplateModal'
import theme from './theme' import theme from './theme'
...@@ -42,11 +43,11 @@ const modals = { ...@@ -42,11 +43,11 @@ const modals = {
errorModal: ErrorModal, errorModal: ErrorModal,
unlockedModal: UnlockedModal, unlockedModal: UnlockedModal,
createTemplateModal: CreateTemplateModal, createTemplateModal: CreateTemplateModal,
updateTemplateModal: UpdateTemplateModal,
deleteTemplateModal: DeleteTemplateModal, deleteTemplateModal: DeleteTemplateModal,
} }
const rootEl = document.getElementById('root') const rootEl = document.getElementById('root')
console.log('theme', theme)
ReactDOM.render( ReactDOM.render(
<ModalProvider modals={modals}> <ModalProvider modals={modals}>
<Root history={history} routes={routes} theme={theme} /> <Root history={history} routes={routes} theme={theme} />
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment