Parcourir la source

Tidying up Recipes folder structure

Tatiana Inama il y a 7 ans
Parent
commit
554c7bc1cf

+ 11 - 0
ktchn/src/ingredients/model.ts

@@ -22,6 +22,17 @@ type Units =
   "to taste"
 ;
 
+
+interface Pure {
+  measure: Measures.mass | Measures.volume,
+}
+
+interface Mixed {
+  measure: Measures.hybrid,
+  refenceUnit: Units,
+  equivalence: number,
+}
+
 export interface Ingredient {
   _id?: ObjectID,
   name: string,

+ 1 - 1
recipes/src/containers/Recipes/actions.ts

@@ -1,6 +1,6 @@
 import axios from 'axios';
 import Recipe from 'types/recipes';
-import { getRecipes } from './services';
+import { getRecipes } from '../services';
 
 export const RECEIVE_RECIPES = 'RECEIVE_RECIPES';
 export const REQUEST_RECIPES = 'REQUEST_RECIPES';

+ 1 - 1
recipes/src/containers/Recipes/List.tsx

@@ -3,7 +3,7 @@ import {
   fetchIfNeeded as fetch,
   receiveRecipes as receive,
   selectRecipe as select,
-} from "containers/Recipes/actions";
+} from "containers/Recipes/List/actions";
 import { connect } from "react-redux";
 import { Grid, Row, Cell } from "@material/react-layout-grid";
 import { Button } from "@material/react-button";

recipes/src/containers/Recipes/reducers.ts → recipes/src/containers/Recipes/List/reducers.ts


+ 1 - 1
recipes/src/store/configureStore.ts

@@ -1,7 +1,7 @@
 import { createStore, applyMiddleware } from 'redux';
 import thunk from 'redux-thunk';
 import { composeWithDevTools } from 'redux-devtools-extension';
-import { recipesReducer } from 'containers/Recipes/reducers';
+import { recipesReducer } from 'containers/Recipes/List/reducers';
 
 const composeEnhancers = composeWithDevTools({});