diff --git a/src/editors/containers/EditorContainer/components/TitleHeader/EditableHeader.jsx b/src/editors/containers/EditorContainer/components/TitleHeader/EditableHeader.jsx index 816ecf8cf..10388083b 100644 --- a/src/editors/containers/EditorContainer/components/TitleHeader/EditableHeader.jsx +++ b/src/editors/containers/EditorContainer/components/TitleHeader/EditableHeader.jsx @@ -11,27 +11,23 @@ export const EditableHeader = ({ inputRef, localTitle, cancelEdit, -}) => { - const width = localTitle.length * 8 + 200; - return ( - updateTitle(e)} - > - } - onChange={handleChange} - onKeyDown={handleKeyDown} - placeholder="Title" - ref={inputRef} - value={localTitle} - /> - - ); -}; +}) => ( + updateTitle(e)} + > + } + onChange={handleChange} + onKeyDown={handleKeyDown} + placeholder="Title" + ref={inputRef} + value={localTitle} + /> + +); EditableHeader.defaultProps = { inputRef: null, }; diff --git a/src/editors/containers/EditorContainer/components/TitleHeader/__snapshots__/EditableHeader.test.jsx.snap b/src/editors/containers/EditorContainer/components/TitleHeader/__snapshots__/EditableHeader.test.jsx.snap index 557b7bb03..9f01bed33 100644 --- a/src/editors/containers/EditorContainer/components/TitleHeader/__snapshots__/EditableHeader.test.jsx.snap +++ b/src/editors/containers/EditorContainer/components/TitleHeader/__snapshots__/EditableHeader.test.jsx.snap @@ -2,12 +2,10 @@ exports[`EditableHeader snapshot snapshot 1`] = ` @@ -18,7 +16,7 @@ exports[`EditableHeader snapshot snapshot 1`] = ` placeholder="Title" style={ Object { - "padding-inline-end": "calc(1rem + 84px)", + "paddingInlineEnd": "calc(1rem + 84px)", } } trailingElement={