diff --git a/frontend/components/Layout/components/Modals.js b/frontend/components/Layout/components/Modals.js index 43e2c4da..37193b8b 100644 --- a/frontend/components/Layout/components/Modals.js +++ b/frontend/components/Layout/components/Modals.js @@ -1,7 +1,7 @@ // @flow import React, { Component } from 'react'; import { observer } from 'mobx-react'; -import Modal from 'components/Modal'; +import BaseModal from 'components/Modal'; import UiStore from 'stores/UiStore'; import CollectionNew from 'scenes/CollectionNew'; import CollectionEdit from 'scenes/CollectionEdit'; @@ -22,48 +22,36 @@ import Settings from 'scenes/Settings'; render() { const { activeModalName, activeModalProps } = this.props.ui; + const Modal = ({ name, children, ...rest }) => { + return ( + + {React.cloneElement(children, activeModalProps)} + + ); + }; + return ( - - + + - - + + - - + + - - + + - + - + diff --git a/frontend/scenes/CollectionEdit/CollectionEdit.js b/frontend/scenes/CollectionEdit/CollectionEdit.js index 249a1eb0..3054311c 100644 --- a/frontend/scenes/CollectionEdit/CollectionEdit.js +++ b/frontend/scenes/CollectionEdit/CollectionEdit.js @@ -48,7 +48,7 @@ type Props = {
- You can edit a collections name at any time, however doing so might + You can edit a collection's name at any time, however doing so might confuse your team mates.