Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc2237c8

Browse files
committed
eslint fixes
1 parent24fc760 commitc2237c8

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

‎src/routes/Home/components/LoginModal/LoginModal.jsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const FormField = ({error, touched, children}) => (
4040
</div>
4141
);
4242
FormField.propTypes={
43-
error:PropTypes.bool,
43+
error:PropTypes.string,
4444
touched:PropTypes.bool,
4545
children:PropTypes.any,
4646
};
@@ -174,9 +174,9 @@ LogInModal.propTypes = {
174174
handleSubmit:PropTypes.func.isRequired,
175175
fields:PropTypes.object,
176176
handleLoggedIn:PropTypes.func.isRequired,
177-
loggedUser:PropTypes.object,
177+
loggedUser:PropTypes.bool,
178178
hasError:PropTypes.bool,
179-
errorText:PropTypes.string.isRequired,
179+
errorText:PropTypes.string,
180180
};
181181

182182
constfields=['remember','email','password','emailUp','passwordUp'];

‎src/routes/Home/components/SignupModal/SignupModal.jsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const FormField = ({error, touched, children}) => (
4040
</div>
4141
);
4242
FormField.propTypes={
43-
error:PropTypes.bool,
43+
error:PropTypes.string,
4444
touched:PropTypes.bool,
4545
children:PropTypes.any,
4646
};
@@ -163,7 +163,7 @@ SignupModal.propTypes = {
163163
handleSigned:PropTypes.func.isRequired,
164164
signedUser:PropTypes.object,
165165
hasError:PropTypes.bool,
166-
errorText:PropTypes.string.isRequired,
166+
errorText:PropTypes.string,
167167
};
168168

169169
constfields=['email','password','emailUp','passwordUp'];

‎src/store/modules/global.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {browserHistory} from 'react-router';
33
importUserApifrom'api/User.js';
44
importconfigfrom'../../config';
55

6-
constuserApi=newUserApi(config.default.api.basePath);
6+
constuserApi=newUserApi(config.api.basePath);
77

88
// ------------------------------------
99
// Actions

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp