Skip to content

Commit

Permalink
Preparing the Folder Structure to use ACTION CREATORS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ch-sriram committed Aug 27, 2020
1 parent c3a4bd7 commit dc431d4
Show file tree
Hide file tree
Showing 8 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,4 @@ Firebase Common API Endpoint: <https://burger-builder-ram.firebaseio.com/>
### Adding ⚡ Advanced Redux ♻ To Our Project 🍔🛠

1. Installing the **[Redux Devtools](https://github.com/zalmoxisus/redux-devtools-extension#11-basic-store)**: [Commit Details](https://github.com/Ch-sriram/burger-builder/commit/90a76bab3dc28ae461c7229419f5c3ff49ec8c27)
2. Preparing the Folder Structure to use **`ACTION CREATORS`**: [Commit Details]()
2 changes: 1 addition & 1 deletion src/containers/BurgerBuilder/BurgerBuilder.component.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import Wrapper from '../../components/UI/Wrapper/Wrapper.component';
import Spinner from '../../components/UI/Spinner/Spinner.component';
import withErrorHandler from '../../hoc/withErrorHandler/withErrorHandler.closureHOC';
import axios from "../../axios-orders";
import * as actionTypes from "../../store/actions";
import * as actionTypes from "../../store/actions/actionTypes";

class BurgerBuilder extends Component {
state = {
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import { createStore } from 'redux';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import reducer from './store/reducer';
import burgerBuilderReducer from './store/reducers/burgerBuilder';

const store = createStore(reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());
const store = createStore(burgerBuilderReducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());

// NOTE: The <Provider /> should wrap all components to be rendered on the DOM.
const app = (
Expand Down
File renamed without changes.
Empty file.
Empty file added src/store/actions/orders.js
Empty file.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as actionTypes from "./actions";
import * as actionTypes from "../actions/actionTypes";

const initialState = {
ingredients: {
Expand Down
Empty file added src/store/reducers/orders.js
Empty file.

0 comments on commit dc431d4

Please sign in to comment.