- { this.props.news.menuItems && this.props.news.menuItems.length > 0 ?
-
-
On the Menu
-
x.recipe_data)}
- footer={(recipe) => (
-
-
-
-
-
- )}
- />
- : ''
- }
+
Recommended Recipes
diff --git a/modules/news/constants/NewsConstants.js b/modules/news/constants/NewsConstants.js
index 44333f53..2c74d195 100644
--- a/modules/news/constants/NewsConstants.js
+++ b/modules/news/constants/NewsConstants.js
@@ -1,5 +1,3 @@
export default {
- NEWS_LOAD: 'NEWS_LOAD',
- NEWS_MENU_ITEM_LOAD: 'NEWS_MENU_ITEM_LOAD',
- NEWS_MENU_ITEM_COMPLETE: 'NEWS_MENU_ITEM_COMPLETE',
+ NEWS_LOAD: 'NEWS_LOAD'
};
\ No newline at end of file
diff --git a/modules/news/css/news.scss b/modules/news/css/news.scss
index e36f37a1..dcb7ccec 100644
--- a/modules/news/css/news.scss
+++ b/modules/news/css/news.scss
@@ -38,15 +38,6 @@
.recipe-card-news-footer {
width: 100%;
}
- .recipe {
- .complete-btn {
- border-radius: 0 0 2px 2px;
- width: 100%;
- .glyphicon-ok {
- margin-left: 10px;
- }
- }
- }
}
@media (max-width: $screen-xs-max) {
diff --git a/modules/news/reducers/NewsReducer.js b/modules/news/reducers/NewsReducer.js
index 67833223..471e8667 100644
--- a/modules/news/reducers/NewsReducer.js
+++ b/modules/news/reducers/NewsReducer.js
@@ -4,10 +4,6 @@ const lists = (state = {}, action) => {
switch (action.type) {
case NewsConstants.NEWS_LOAD:
return { ...state, news: action.news };
- case NewsConstants.NEWS_MENU_ITEM_LOAD:
- return { ...state, menuItems: action.items };
- case NewsConstants.NEWS_MENU_ITEM_COMPLETE:
- return { ...state, menuItems: state.menuItems.filter(x => x.id !== action.id) };
default:
return state;
}
diff --git a/modules/recipe_form/utilts/parseIngredient.js b/modules/recipe_form/utilts/parseIngredient.js
index cd8477b4..bb95bbd8 100644
--- a/modules/recipe_form/utilts/parseIngredient.js
+++ b/modules/recipe_form/utilts/parseIngredient.js
@@ -1,4 +1,3 @@
-import formatQuantity from '../../recipe/utilts/formatQuantity'
import { GCD } from '../../recipe/utilts/gcd'
// Given an array of text values,
@@ -45,6 +44,8 @@ const numberSplit = number => {
let last = -1;
let length = number.length;
let numbers = ['1','2','3','4','5','6','7','8','9','0'];
+
+ // eslint-disable-next-line
numbers.map(n => {
if (number.lastIndexOf(n) > last) {
last = number.lastIndexOf(n)
diff --git a/modules/registerServiceWorker.js b/modules/registerServiceWorker.js
index 51f64a36..b5077e1c 100644
--- a/modules/registerServiceWorker.js
+++ b/modules/registerServiceWorker.js
@@ -30,6 +30,7 @@ export default function register() {
}
window.addEventListener('load', (event) => {
+ // eslint-disable-next-line
if (window.location.pathname.match('^.*(\/admin\/).*$')) {
return false;
}
diff --git a/package.json b/package.json
index 4fcc9760..50ded0d7 100644
--- a/package.json
+++ b/package.json
@@ -69,7 +69,7 @@
"react-redux": "^5.0.6",
"react-router-bootstrap": "^0.24.4",
"react-router-dom": "^4.2.2",
- "react-select": "^2.1.1",
+ "react-select": "^2.4.1",
"react-spinkit": "2.1.2",
"redux": "^3.7.2",
"redux-thunk": "^2.2.0",
diff --git a/yarn.lock b/yarn.lock
index 9efa0711..b58f13db 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -6663,7 +6663,7 @@ react-router@^4.3.1:
prop-types "^15.6.1"
warning "^4.0.1"
-react-select@^2.1.1:
+react-select@^2.4.1:
version "2.4.1"
resolved "https://registry.yarnpkg.com/react-select/-/react-select-2.4.1.tgz#99dd9c8b7700b5ebd38007dd707b1abdbad2e70f"
dependencies: