aboutsummaryrefslogtreecommitdiff
path: root/src/routes/ProjectRoutes.js
blob: 429042813171ebc150631a5c8284f1cbc721d3ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import React, { Component } from 'react';
import { BrowserRouter as Router, Route, Switch } from 'react-router-dom';

// import Project from '../components/project/project-page/Project';
import VideosCategory from "../components/work/categories/Videos";
import DevelopmentCategory from "../components/work/categories/Development";

import projectData from '../components/projectData';

import ErrorHero from "../components/error/Hero";

export default class ProjectRoutes extends Component {
    render() {
        return(
            <Router>
                <Switch>
                    <Route exact path="/development">
                        <DevelopmentCategory projectData={projectData} />
                    </Route>
                    <Route exact path="/videos">
                        <VideosCategory projectData={projectData} />
                    </Route>
                    <Route exact path="/*">
                        <ErrorHero />
                    </Route>
                </Switch>
            </Router>
        )
    }
}