Skip to content

Commit

Permalink
Improving & Fixing the Burger Builder Project: Fixing the Redirect to…
Browse files Browse the repository at this point in the history
… the Front Page
  • Loading branch information
Ch-sriram committed Sep 10, 2020
1 parent c03e9c1 commit db00f58
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,7 @@ Dependency Installation: **`npm i --save redux-thunk`**
13. Persistent `auth` State with `localStorage` && Fixing Routing Errors using `withRouter()` from `react-router`: [Commit Details](https://github.com/Ch-sriram/burger-builder/commit/c80a5e75710dd07156e264a8b058a3ff1c920d99)
14. Guarding Routes: [Commit Details](https://github.com/Ch-sriram/burger-builder/commit/575e1f0407059f55513181cf4a13beeadb8d9a7b)
15. Displaying User Specific Orders: [Commit Details](https://github.com/Ch-sriram/burger-builder/commit/1e4a03e1fa691cae4d06e8178cdd1614dc31f551)

### Improving & Fixing 🛠 the 🍔🛠 Project

1. Fixing the Redirect to the Front Page: [Commit Details]()
1 change: 1 addition & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class App extends Component {
<Route path="/checkout" component={Checkout} />
<Route path="/orders" component={Orders} />
<Route path="/logout" component={Logout} />
<Route path="/auth" component={Auth} />
<Route path="/" component={BurgerBuilder} />
<Redirect to="/" />
</Switch>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const sideDrawer = props => {
return (
<Aux>
<Backdrop show={props.open} clicked={props.closed}/>
<SideDrawer status={status}>
<SideDrawer status={status} onClick={props.closed}>
<LogoDiv>
<Logo />
</LogoDiv>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ const CheckoutDiv = styled.div`
margin: auto;
}
@media (min-width: 600px) {
/* @media (min-width: 600px) {
width: 500px;
}
} */
`;

// RENDERED JSX COMPONENT
Expand Down

0 comments on commit db00f58

Please sign in to comment.