move channel selection to top of publish form

This commit is contained in:
Sean Yesmunt 2021-01-25 17:08:39 -05:00
parent d3244593a5
commit 0c8c4938d9
3 changed files with 20 additions and 12 deletions

View file

@ -1567,5 +1567,6 @@
"Delete or edit past content to spend": "Delete or edit past content to spend",
"Delete supports to spend": "Delete supports to spend",
"%lbc_amount% boosting content": "%lbc_amount% boosting content",
"Deposit cannot be higher than your available balance: %balance%": "Deposit cannot be higher than your available balance: %balance%",
"--end--": "--end--"
}

View file

@ -367,7 +367,12 @@ function PublishFile(props: Props) {
onChange={handleTitleChange}
/>
{isPublishFile && (
<FileSelector disabled={disabled} currentPath={currentFile} onFileChosen={handleFileChange} />
<FileSelector
label={__('File')}
disabled={disabled}
currentPath={currentFile}
onFileChosen={handleFileChange}
/>
)}
{isPublishPost && (
<PostEditor

View file

@ -331,6 +331,19 @@ function PublishForm(props: Props) {
// Editing claim uri
return (
<div className="card-stack">
<Card
className={disabled ? 'card--disabled' : undefined}
actions={
<React.Fragment>
<SelectChannel channel={channel} onChannelChange={handleChannelNameChange} />
<p className="help">
{__('This is a username or handle that your content can be found under.')}{' '}
{__('Ex. @Marvel, @TheBeatles, @BooksByJoe')}
</p>
</React.Fragment>
}
/>
<PublishFile
uri={uri}
mode={mode}
@ -389,17 +402,6 @@ function PublishForm(props: Props) {
tagsChosen={tags}
/>
<Card
actions={
<React.Fragment>
<SelectChannel channel={channel} onChannelChange={handleChannelNameChange} />
<p className="help">
{__('This is a username or handle that your content can be found under.')}{' '}
{__('Ex. @Marvel, @TheBeatles, @BooksByJoe')}
</p>
</React.Fragment>
}
/>
<PublishName
disabled={isStillEditing || formDisabled}
autoPopulateName={autoPopulateNameFromTitle}