Skip to content

Commit a428d6d

Browse files
committed
Flow and linting errorss
1 parent 592836e commit a428d6d

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

ashes/src/components/catalog/catalog-page.jsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,13 @@ class CatalogPage extends Component {
9595

9696
let links = null;
9797
if (!this.isNew) {
98-
console.log('set links');
9998
links = (
10099
<Link to="catalog-products" params={params}>
101100
Products
102101
</Link>
103102
);
104103
}
105-
104+
106105
return (
107106
<PageNav>
108107
<IndexLink
@@ -174,7 +173,7 @@ class CatalogPage extends Component {
174173
if (isFetching) {
175174
return <WaitAnimation />;
176175
}
177-
176+
178177
return (
179178
<div>
180179
<PageTitle title={this.pageTitle}>

ashes/src/components/catalog/details.jsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import _ from 'lodash';
44
import React from 'react';
55

6-
import Content from 'components/core/content/content';
76
import ContentBox from 'components/content-box/content-box';
87
import { Dropdown } from 'components/dropdown';
98
import ErrorAlerts from 'components/alerts/error-alerts';
@@ -30,7 +29,7 @@ const CatalogDetails = (props: Props) => {
3029
const { defaultLanguage, name, site, countryId, countries } = props;
3130
const { onChange, onSubmit } = props;
3231
const { err } = props;
33-
32+
3433
const country = _.find(countries, { 'id': countryId });
3534

3635
let languages = _.get(country, 'languages', []);

ashes/src/components/catalog/products.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,16 @@ type Props = {
3434
params: {
3535
catalogId: number,
3636
},
37+
actions: {
38+
addSearchFilters: Function,
39+
fetch: Function,
40+
linkProducts: Function,
41+
unlinkProduct: Function,
42+
setExtraFilters: Function,
43+
},
44+
list: ?Object,
45+
linkState: Object,
46+
unlinkState: Object,
3747
}
3848

3949
type State = {

0 commit comments

Comments
 (0)