File tree Expand file tree Collapse file tree 4 files changed +15
-5
lines changed
Expand file tree Collapse file tree 4 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 2727 "test:file" : " NODE_ENV=jesttest jest --watch --no-coverage"
2828 },
2929 "eslintConfig" : {
30- "extends" : [
31- " @reactioncommerce"
32- ]
30+ "extends" : " @reactioncommerce" ,
31+ "settings" : {
32+ "react" : {
33+ "version" : " detect"
34+ }
35+ }
3336 },
3437 "dependencies" : {
3538 "@material-ui/core" : " ~3.9.2" ,
Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ import {
1111 removeAccountAddressBookEntry
1212} from "./mutations.gql" ;
1313
14+ /**
15+ * @summary HOC that adds address book props
16+ * @param {React.Component } Comp React Component to wrap
17+ * @return {React.Component } Wrapped component
18+ */
1419export default function withAddressBook ( Comp ) {
1520 @withApollo
1621 @inject ( "authStore" )
@@ -110,7 +115,7 @@ export default function withAddressBook(Comp) {
110115 handleRemoveAccountAddressBookEntry = ( addressId ) => {
111116 const { client : apolloClient } = this . props ;
112117
113- if ( ! confirm ( "Delete this address?" ) ) {
118+ if ( ! confirm ( "Delete this address?" ) ) { // eslint-disable-line no-alert
114119 return ;
115120 }
116121
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export default function withApolloClient(WrappedComponent) {
9898
9999 static getDerivedStateFromProps ( nextProps ) {
100100 const { pathname, query, route } = nextProps . router ;
101- const { requestPath, hasRequestObject } = nextProps ;
101+ const { requestPath, hasRequestObject } = nextProps ; // eslint-disable-line react/prop-types
102102
103103 // Update routing store with pathname and query after route change
104104 rootMobxStores . routingStore . updateRoute ( { pathname, query, route } ) ;
Original file line number Diff line number Diff line change 1+ /* eslint-disable react/display-name, react/no-multi-comp */
2+
13import React , { Component } from "react" ;
24import PropTypes from "prop-types" ;
35import { inject , observer } from "mobx-react" ;
You can’t perform that action at this time.
0 commit comments