undo "isRequired" deletes
This commit is contained in:
		
							parent
							
								
									ae61d2b11b
								
							
						
					
					
						commit
						c463237bd7
					
				| @ -81,7 +81,6 @@ export const login = | |||||||
|       axios |       axios | ||||||
|         .post(`${process.env.REACT_APP_BLOCKLY_API}/user`, body, config) |         .post(`${process.env.REACT_APP_BLOCKLY_API}/user`, body, config) | ||||||
|         .then((res) => { |         .then((res) => { | ||||||
|           console.log(res); |  | ||||||
|           dispatch(setLanguage(res.data.user.language)); |           dispatch(setLanguage(res.data.user.language)); | ||||||
|           dispatch({ |           dispatch({ | ||||||
|             type: LOGIN_SUCCESS, |             type: LOGIN_SUCCESS, | ||||||
|  | |||||||
| @ -58,8 +58,8 @@ AutoSave.propTypes = { | |||||||
|   xml: PropTypes.string.isRequired, |   xml: PropTypes.string.isRequired, | ||||||
|   name: PropTypes.string, |   name: PropTypes.string, | ||||||
|   workspaceName: PropTypes.func.isRequired, |   workspaceName: PropTypes.func.isRequired, | ||||||
|   setAutosave: PropTypes.func, |   setAutosave: PropTypes.func.isRequired, | ||||||
|   autosave: PropTypes.bool, |   autosave: PropTypes.bool.isRequired, | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| const mapStateToProps = (state) => ({ | const mapStateToProps = (state) => ({ | ||||||
|  | |||||||
| @ -57,7 +57,7 @@ class DownloadProject extends Component { | |||||||
| 
 | 
 | ||||||
| DownloadProject.propTypes = { | DownloadProject.propTypes = { | ||||||
|   xml: PropTypes.string.isRequired, |   xml: PropTypes.string.isRequired, | ||||||
|   name: PropTypes.string |   name: PropTypes.string.isRequired | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| const mapStateToProps = state => ({ | const mapStateToProps = state => ({ | ||||||
|  | |||||||
| @ -129,7 +129,7 @@ OpenProject.propTypes = { | |||||||
|   clearStats: PropTypes.func.isRequired, |   clearStats: PropTypes.func.isRequired, | ||||||
|   workspaceName: PropTypes.func.isRequired, |   workspaceName: PropTypes.func.isRequired, | ||||||
|   xml: PropTypes.string.isRequired, |   xml: PropTypes.string.isRequired, | ||||||
|   name: PropTypes.string |   name: PropTypes.string.isRequired | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| const mapStateToProps = state => ({ | const mapStateToProps = state => ({ | ||||||
|  | |||||||
| @ -301,7 +301,7 @@ class WorkspaceFunc extends Component { | |||||||
| WorkspaceFunc.propTypes = { | WorkspaceFunc.propTypes = { | ||||||
|   shareProject: PropTypes.func.isRequired, |   shareProject: PropTypes.func.isRequired, | ||||||
|   clearMessages: PropTypes.func.isRequired, |   clearMessages: PropTypes.func.isRequired, | ||||||
|   name: PropTypes.string, |   name: PropTypes.string.isRequired, | ||||||
|   message: PropTypes.object.isRequired, |   message: PropTypes.object.isRequired, | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -99,7 +99,7 @@ class WorkspaceFunc extends Component { | |||||||
| 
 | 
 | ||||||
| WorkspaceFunc.propTypes = { | WorkspaceFunc.propTypes = { | ||||||
|   user: PropTypes.object, |   user: PropTypes.object, | ||||||
|   autosave: PropTypes.bool, |   autosave: PropTypes.bool.isRequired, | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| const mapStateToProps = (state) => ({ | const mapStateToProps = (state) => ({ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user