Skip to content

Commit c2237c8

Browse files
committed
eslint fixes
1 parent 24fc760 commit c2237c8

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
const fields = ['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
const fields = ['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
import UserApi from 'api/User.js';
44
import config from '../../config';
55

6-
const userApi = new UserApi(config.default.api.basePath);
6+
const userApi = new UserApi(config.api.basePath);
77

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy