Use ES Class Fields & Static Properties (#3008)
Use ES Class Fields & Static Properties (currently stage 2) for improve class outlook. Added babel-plugin-transform-class-properties as a Babel plugin.
This commit is contained in:
		
					parent
					
						
							
								44a3584e2d
							
						
					
				
			
			
				commit
				
					
						2991a7cfe6
					
				
			
		
					 79 changed files with 838 additions and 1128 deletions
				
			
		|  | @ -5,6 +5,10 @@ const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; | |||
| 
 | ||||
| class AttachmentList extends React.PureComponent { | ||||
| 
 | ||||
|   static propTypes = { | ||||
|     media: ImmutablePropTypes.list.isRequired | ||||
|   }; | ||||
| 
 | ||||
|   render () { | ||||
|     const { media } = this.props; | ||||
| 
 | ||||
|  | @ -24,10 +28,7 @@ class AttachmentList extends React.PureComponent { | |||
|       </div> | ||||
|     ); | ||||
|   } | ||||
| 
 | ||||
| } | ||||
| 
 | ||||
| AttachmentList.propTypes = { | ||||
|   media: ImmutablePropTypes.list.isRequired | ||||
| }; | ||||
| 
 | ||||
| export default AttachmentList; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue