Use Class and Property Decorators (#3730)
ref https://tc39.github.io/proposal-decorators/
This commit is contained in:
parent
0c44316b22
commit
c1a8e3d1eb
90 changed files with 168 additions and 274 deletions
|
@ -11,7 +11,8 @@ const messages = defineMessages({
|
|||
undo: { id: 'upload_form.undo', defaultMessage: 'Undo' },
|
||||
});
|
||||
|
||||
class UploadForm extends React.PureComponent {
|
||||
@injectIntl
|
||||
export default class UploadForm extends React.PureComponent {
|
||||
|
||||
static propTypes = {
|
||||
media: ImmutablePropTypes.list.isRequired,
|
||||
|
@ -48,5 +49,3 @@ class UploadForm extends React.PureComponent {
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
export default injectIntl(UploadForm);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue