Skip to content

Commit

Permalink
adding Cart page placeholder
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-fs committed Feb 4, 2020
1 parent 0756993 commit 5172b15
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/components/App.tsx
Expand Up @@ -14,6 +14,9 @@ const App = () => {
<Navigation />
</header>
<Switch>
<Route path="/cart">
<Checkout />
</Route>
<Route path="/checkout">
<Checkout />
</Route>
Expand Down
9 changes: 9 additions & 0 deletions src/components/Cart.tsx
@@ -0,0 +1,9 @@
import React from 'react';

const Cart = () => {
return(
<div>Cart</div>
);
};

export default Cart;
2 changes: 1 addition & 1 deletion src/components/CartButton.tsx
Expand Up @@ -17,7 +17,7 @@ type PropsFromRedux = ConnectedProps<typeof connector>;

const CartButton = (props: PropsFromRedux) => {
return(
<Button variant="dark">My Cart {props.products.length}</Button>
<Button variant="dark" href="/cart">My Cart {props.products.length}</Button>
);
};

Expand Down

0 comments on commit 5172b15

Please sign in to comment.