Show/Hide Price on Publish Form

This commit is contained in:
YULIUS KURNIAWAN KRISTIANTO 2018-04-12 06:41:53 +07:00 committed by GitHub
parent caaa6b05b0
commit 460c0fc3fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,14 +394,14 @@ class PublishForm extends React.PureComponent<Props> {
disabled={formDisabled}
onChange={() => updatePublishForm({ contentIsFree: false })}
/>
<FormFieldPrice
name="content_cost_amount"
min="0"
price={price}
onChange={newPrice => updatePublishForm({ price: newPrice })}
disabled={formDisabled || contentIsFree}
/>
{!contentIsFree && (
<FormFieldPrice
name="content_cost_amount"
min="0"
price={price}
onChange={newPrice => updatePublishForm({ price: newPrice })}
/>
)}
{price.currency !== 'LBC' && (
<p className="form-field__help">
{__(