diff --git a/frontend/scenes/DocumentEdit/DocumentEdit.js b/frontend/scenes/DocumentEdit/DocumentEdit.js
index d7b4bfaf1..43e8fefe1 100644
--- a/frontend/scenes/DocumentEdit/DocumentEdit.js
+++ b/frontend/scenes/DocumentEdit/DocumentEdit.js
@@ -5,7 +5,6 @@ import keydown from 'react-keydown';
import DocumentEditStore, { DOCUMENT_EDIT_SETTINGS } from './DocumentEditStore';
-import Switch from 'components/Switch';
import Layout, { Title, HeaderAction, SaveAction } from 'components/Layout';
import { Flex } from 'reflexbox';
import AtlasPreviewLoading from 'components/AtlasPreviewLoading';
@@ -141,7 +140,7 @@ class DocumentEdit extends Component {
}>
@@ -104,4 +99,76 @@ import SettingsStore from './SettingsStore';
}
}
+const InlineForm = ({
+ placeholder,
+ buttonLabel,
+ name,
+ value,
+ onChange,
+ onSubmit,
+ disabled,
+}: {
+ placeholder: string,
+ buttonLabel: string,
+ name: string,
+ value: string,
+ onChange: Function,
+ onSubmit: Function,
+ disabled?: boolean,
+}) => {
+ const handleSubmit = event => {
+ event.preventDefault();
+ onSubmit();
+ };
+ return (
+