undo "isRequired" deletes

This commit is contained in:
fbruc03
2022-12-05 14:12:51 +01:00
parent ae61d2b11b
commit c463237bd7
6 changed files with 6 additions and 7 deletions
-1
View File
@@ -81,7 +81,6 @@ export const login =
axios
.post(`${process.env.REACT_APP_BLOCKLY_API}/user`, body, config)
.then((res) => {
console.log(res);
dispatch(setLanguage(res.data.user.language));
dispatch({
type: LOGIN_SUCCESS,
+2 -2
View File
@@ -58,8 +58,8 @@ AutoSave.propTypes = {
xml: PropTypes.string.isRequired,
name: PropTypes.string,
workspaceName: PropTypes.func.isRequired,
setAutosave: PropTypes.func,
autosave: PropTypes.bool,
setAutosave: PropTypes.func.isRequired,
autosave: PropTypes.bool.isRequired,
};
const mapStateToProps = (state) => ({
+1 -1
View File
@@ -57,7 +57,7 @@ class DownloadProject extends Component {
DownloadProject.propTypes = {
xml: PropTypes.string.isRequired,
name: PropTypes.string
name: PropTypes.string.isRequired
};
const mapStateToProps = state => ({
+1 -1
View File
@@ -129,7 +129,7 @@ OpenProject.propTypes = {
clearStats: PropTypes.func.isRequired,
workspaceName: PropTypes.func.isRequired,
xml: PropTypes.string.isRequired,
name: PropTypes.string
name: PropTypes.string.isRequired
};
const mapStateToProps = state => ({
+1 -1
View File
@@ -301,7 +301,7 @@ class WorkspaceFunc extends Component {
WorkspaceFunc.propTypes = {
shareProject: PropTypes.func.isRequired,
clearMessages: PropTypes.func.isRequired,
name: PropTypes.string,
name: PropTypes.string.isRequired,
message: PropTypes.object.isRequired,
};
+1 -1
View File
@@ -99,7 +99,7 @@ class WorkspaceFunc extends Component {
WorkspaceFunc.propTypes = {
user: PropTypes.object,
autosave: PropTypes.bool,
autosave: PropTypes.bool.isRequired,
};
const mapStateToProps = (state) => ({