Skip to content

Commit

Permalink
#16 private thesis view
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus-andito committed May 30, 2021
1 parent 0ed6d62 commit 7d730f2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import ThesisSearchView from './views/thesis-bank/search';
import PublicThesesView from './views/thesis-bank/public-root';
import PublicLayout from './views/thesis-bank/layouts/PublicLayout';
import PublicThesisView from './views/thesis-bank/public-thesis';
import ThesisView from './views/thesis-bank/thesis';

const routes = [
{
Expand All @@ -47,7 +48,7 @@ const routes = [
path: 'thesis-bank',
element: <Outlet />,
children: [
{ path: ':thesisId', element: <Outlet /> },
{ path: ':thesisId', element: <ThesisView /> },
{ path: 'search', element: <ThesisSearchView /> },
{ path: 'me', element: <ThesisMySubmissionsView /> },
{ path: 'submission', element: <ThesisSubmissionView /> },
Expand Down
15 changes: 15 additions & 0 deletions src/views/thesis-bank/thesis/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import React from 'react';
import { useParams } from 'react-router';
import { Card } from 'antd';

import Thesis from '../components/Thesis';

export default function ThesisView() {
const { thesisId } = useParams();

return (
<Card>
<Thesis id={thesisId} />
</Card>
);
}

0 comments on commit 7d730f2

Please sign in to comment.