summaryrefslogtreecommitdiffstats
path: root/frontend/components/Cart.js
diff options
context:
space:
mode:
authorWes Bos <wesbos@gmail.com>2018-02-13 13:19:23 -0500
committerWes Bos <wesbos@gmail.com>2018-02-13 13:19:23 -0500
commitfa3ec3299b3fa33e5a699683beb96cfa4e6dd51d (patch)
tree601b4ff9650cd17a6d4181fc5982b401411d2a6a /frontend/components/Cart.js
parente0d0baa75ec0bf617f91b6cd779305d4009cae12 (diff)
getting there
Diffstat (limited to 'frontend/components/Cart.js')
-rw-r--r--frontend/components/Cart.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/frontend/components/Cart.js b/frontend/components/Cart.js
index 4153600..46a8941 100644
--- a/frontend/components/Cart.js
+++ b/frontend/components/Cart.js
@@ -3,6 +3,8 @@ import { graphql, compose } from 'react-apollo';
import styled from 'styled-components';
import { CURRENT_USER_QUERY } from '../queries';
import RemoveFromCart from './RemoveFromCart';
+import TakeMyMoney from './TakeMyMoney';
+import { formatMoney } from '../lib/formatMoney';
const CartStyles = styled.div`
background: white;
@@ -43,6 +45,11 @@ class Cart extends Component {
</li>
))}
</ul>
+
+ <TakeMyMoney>
+ <hr />
+ <button>Checkout!!!</button>
+ </TakeMyMoney>
{/* There
{user.cart.length === 1 ? ' is ' : 'are '}
<ChaChing amount={user.cart.length} />