mirror of
https://github.com/ascribe/onion.git
synced 2024-12-22 09:23:13 +01:00
Resolve PR comments
This commit is contained in:
parent
685ac0d941
commit
9c47c22e91
@ -73,7 +73,7 @@ const InputContractAgreementCheckbox = React.createClass({
|
||||
// If there is no contract available, hide this `Property` from the user
|
||||
this.props.setExpanded(!!contractAgreement);
|
||||
|
||||
state = Object.assign(state, {
|
||||
this.setState({
|
||||
value: {
|
||||
// If `email` is defined in this component, `getContractAgreementsOrCreatePublic`
|
||||
// is either:
|
||||
@ -93,8 +93,6 @@ const InputContractAgreementCheckbox = React.createClass({
|
||||
terms: !contractAgreement || !!contractAgreement.datetime_accepted
|
||||
}
|
||||
});
|
||||
|
||||
this.setState(state);
|
||||
},
|
||||
|
||||
onChange(event) {
|
||||
|
@ -76,7 +76,7 @@ const FileDragAndDropPreview = React.createClass({
|
||||
if (numberOfDisplayedFiles === 1) {
|
||||
return (
|
||||
<span className="file-name">
|
||||
{truncateText(file.name, 30, '(...).' + extractFileExtensionFromString(file.name))}
|
||||
{truncateText(file.name, 30, `(...).${extractFileExtensionFromString(file.name)}`)}
|
||||
</span>
|
||||
);
|
||||
} else {
|
||||
|
@ -127,7 +127,7 @@ export default function UploadButton({ className = 'btn btn-default btn-sm', sho
|
||||
if (uploadingFiles.length) {
|
||||
return (
|
||||
<span>
|
||||
{' ' + truncateText(uploadingFiles[0].name, 40) + ' '}
|
||||
{` ${truncateText(uploadingFiles[0].name, 40)} `}
|
||||
[<a onClick={this.onClickRemove}>{getLangText('cancel upload')}</a>]
|
||||
</span>
|
||||
);
|
||||
@ -135,7 +135,7 @@ export default function UploadButton({ className = 'btn btn-default btn-sm', sho
|
||||
return (
|
||||
<span>
|
||||
<span className='ascribe-icon icon-ascribe-ok'/>
|
||||
{' ' + truncateText(uploadedFile.name, 40) + ' '}
|
||||
{` ${truncateText(uploadedFile.name, 40)} `}
|
||||
[<a onClick={this.onClickRemove}>{getLangText('remove')}</a>]
|
||||
</span>
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user