From d7685d6675ad1f211016861dffc8bbf05fec4b39 Mon Sep 17 00:00:00 2001 From: Chris Dopuch Date: Fri, 4 Jan 2019 20:40:52 -0800 Subject: [PATCH] Remove Projects (#11) * remove projects for now * tests --- src/components/App.test.tsx | 6 ----- src/components/App.tsx | 9 -------- .../__snapshots__/App.test.tsx.snap | 22 ------------------- 3 files changed, 37 deletions(-) diff --git a/src/components/App.test.tsx b/src/components/App.test.tsx index 5e9fe96..cb03bcc 100644 --- a/src/components/App.test.tsx +++ b/src/components/App.test.tsx @@ -36,10 +36,4 @@ describe('App', () => { expect(wrapper).toMatchSnapshot(); }); - - it('renders Projects', () => { - const wrapper = shallow(); - - expect(wrapper).toMatchSnapshot(); - }); }); diff --git a/src/components/App.tsx b/src/components/App.tsx index 2dddefc..93c833e 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -7,9 +7,7 @@ import { WithStyles, withStyles, } from '@material-ui/core/styles'; -import Typography from '@material-ui/core/Typography'; import CameraIcon from '@material-ui/icons/Camera'; -import CodeIcon from '@material-ui/icons/Code'; import HelpIcon from '@material-ui/icons/Help'; import HomeIcon from '@material-ui/icons/Home'; import React from 'react'; @@ -21,17 +19,10 @@ import Gallery from './pages/Gallery'; import Home from './pages/Home'; import TitleBar from './TitleBar'; -export const Projects = () => ( - - Projects - -); - const navBarItems = [ { to: '/', label: 'Home', Icon: HomeIcon, isRouteExact: true, page: Home }, { to: '/about', label: 'About me', Icon: HelpIcon, isRouteExact: false, page: About }, { to: '/gallery', label: 'Gallery', Icon: CameraIcon, isRouteExact: false, page: Gallery }, - { to: '/projects', label: 'Projects', Icon: CodeIcon, isRouteExact: false, page: Projects }, ]; const stylesDeclarations = (theme: Theme) => { diff --git a/src/components/__snapshots__/App.test.tsx.snap b/src/components/__snapshots__/App.test.tsx.snap index 941d805..7a9b202 100644 --- a/src/components/__snapshots__/App.test.tsx.snap +++ b/src/components/__snapshots__/App.test.tsx.snap @@ -1,14 +1,5 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`App renders Projects 1`] = ` - - Projects - -`; - exports[`App renders default props 1`] = ` @@ -61,13 +52,6 @@ exports[`App renders default props 1`] = ` "page": [Function], "to": "/gallery", }, - Object { - "Icon": [Function], - "isRouteExact": false, - "label": "Projects", - "page": [Function], - "to": "/projects", - }, ] } /> @@ -95,12 +79,6 @@ exports[`App renders default props 1`] = ` key="/gallery" path="/gallery" /> -