diff --git a/ui/component/publishFile/view.jsx b/ui/component/publishFile/view.jsx index 001479b04..fbb35cbcf 100644 --- a/ui/component/publishFile/view.jsx +++ b/ui/component/publishFile/view.jsx @@ -36,6 +36,7 @@ type Props = { setPublishMode: string => void, setPrevFileText: string => void, setAutoPopulateName: boolean => void, + header: any, }; function PublishFile(props: Props) { @@ -62,6 +63,7 @@ function PublishFile(props: Props) { setPrevFileText, autoPopulateName, setAutoPopulateName, + header, } = props; const ffmpegAvail = ffmpegStatus.available; @@ -324,28 +326,17 @@ function PublishFile(props: Props) { updatePublishForm(publishFormParams); } - let cardTitle; - if (publishing) { - cardTitle = ( - - {__('Uploading')} - - - ); - } else { - cardTitle = isStillEditing ? __('Edit') : __('Upload'); - } - const isPublishFile = mode === PUBLISH_MODES.FILE; const isPublishPost = mode === PUBLISH_MODES.POST; return ( - {cardTitle}{' '} + {header} + {publishing && } {inProgress && } } diff --git a/ui/component/publishForm/view.jsx b/ui/component/publishForm/view.jsx index 928f4b4ba..c1b82a9eb 100644 --- a/ui/component/publishForm/view.jsx +++ b/ui/component/publishForm/view.jsx @@ -291,20 +291,6 @@ function PublishForm(props: Props) { // Editing claim uri return ( - - {MODES.map((modeName, index) => ( - { - setMode(modeName); - }} - className={classnames('button-toggle', { 'button-toggle--active': mode === modeName })} - /> - ))} - + {MODES.map((modeName, index) => ( + { + setMode(modeName); + }} + className={classnames('button-toggle', { 'button-toggle--active': mode === modeName })} + /> + ))} + + } /> {!publishing && (