From 8a5825d52271d712ec7c8348447d433067e13ef2 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 13 Sep 2018 14:18:56 -0400 Subject: DONE --- finished-application/frontend/components/Nav.js | 59 ------------------------- 1 file changed, 59 deletions(-) delete mode 100644 finished-application/frontend/components/Nav.js (limited to 'finished-application/frontend/components/Nav.js') diff --git a/finished-application/frontend/components/Nav.js b/finished-application/frontend/components/Nav.js deleted file mode 100644 index 5f3495a..0000000 --- a/finished-application/frontend/components/Nav.js +++ /dev/null @@ -1,59 +0,0 @@ -import React, { Fragment } from 'react'; -import Link from 'next/link'; -import { Query, Mutation } from 'react-apollo'; -import { TOGGLE_CART_MUTATION } from './Cart'; -import User from './User'; -import CartCount from './CartCount'; -import Signout from './Signout'; -import NavStyles from './styles/NavStyles'; - -class Nav extends React.Component { - render() { - // below we set the fetchPolicy to network only so it forces re-fetch on the server - return ( - - {({ data: { me } }) => ( - - - Shop - - - Sell - - - {!me && ( - - Sign In - - )} - - {me && ( - - - Orders - - - My Account - - - - {toggleCart => ( - - )} - - - )} - - )} - - ); - } -} - -export default Nav; -- cgit v1.3