2018-08-31 12:52:49 +01:00
|
|
|
import React, { Component } from 'react';
|
2018-09-04 14:54:23 +01:00
|
|
|
import { Router } from '@reach/router';
|
|
|
|
|
|
2018-09-05 14:00:48 +01:00
|
|
|
import RedirectHome from '../components/RedirectHome';
|
2018-09-04 14:54:23 +01:00
|
|
|
import ShowCertification from '../client-only-routes/ShowCertification';
|
2018-08-31 12:52:49 +01:00
|
|
|
|
|
|
|
|
import './certification.css';
|
|
|
|
|
|
|
|
|
|
class Certification extends Component {
|
|
|
|
|
render() {
|
2018-09-04 14:54:23 +01:00
|
|
|
return (
|
|
|
|
|
<Router>
|
|
|
|
|
<ShowCertification path='/certification/:username/:certName' />
|
2018-09-05 14:00:48 +01:00
|
|
|
<RedirectHome default={true} />
|
2018-09-04 14:54:23 +01:00
|
|
|
</Router>
|
|
|
|
|
);
|
2018-08-31 12:52:49 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default Certification;
|