Skip to content

Commit

Permalink
Remove Projects (#11)
Browse files Browse the repository at this point in the history
* remove projects for now

* tests
  • Loading branch information
chrisdopuch authored Jan 5, 2019
1 parent 7bdf319 commit d7685d6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 37 deletions.
6 changes: 0 additions & 6 deletions src/components/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,4 @@ describe('App', () => {

expect(wrapper).toMatchSnapshot();
});

it('renders Projects', () => {
const wrapper = shallow(<Projects />);

expect(wrapper).toMatchSnapshot();
});
});
9 changes: 0 additions & 9 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand All @@ -21,17 +19,10 @@ import Gallery from './pages/Gallery';
import Home from './pages/Home';
import TitleBar from './TitleBar';

export const Projects = () => (
<Typography variant="h2" component="h3">
Projects
</Typography>
);

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) => {
Expand Down
22 changes: 0 additions & 22 deletions src/components/__snapshots__/App.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`App renders Projects 1`] = `
<WithStyles(Typography)
component="h3"
variant="h2"
>
Projects
</WithStyles(Typography)>
`;

exports[`App renders default props 1`] = `
<Fragment>
<WithStyles(CssBaseline) />
Expand Down Expand Up @@ -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",
},
]
}
/>
Expand Down Expand Up @@ -95,12 +79,6 @@ exports[`App renders default props 1`] = `
key="/gallery"
path="/gallery"
/>
<Route
component={[Function]}
exact={false}
key="/projects"
path="/projects"
/>
</main>
</div>
</BrowserRouter>
Expand Down

0 comments on commit d7685d6

Please sign in to comment.