From 7d730f22e9edaa8119c116c08f10e9af2623c3ba Mon Sep 17 00:00:00 2001 From: Albertus Andito Date: Sun, 30 May 2021 18:28:08 +0100 Subject: [PATCH] #16 private thesis view --- src/routes.js | 3 ++- src/views/thesis-bank/thesis/index.js | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 src/views/thesis-bank/thesis/index.js diff --git a/src/routes.js b/src/routes.js index 042d8dd..abc2d7a 100644 --- a/src/routes.js +++ b/src/routes.js @@ -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 = [ { @@ -47,7 +48,7 @@ const routes = [ path: 'thesis-bank', element: , children: [ - { path: ':thesisId', element: }, + { path: ':thesisId', element: }, { path: 'search', element: }, { path: 'me', element: }, { path: 'submission', element: }, diff --git a/src/views/thesis-bank/thesis/index.js b/src/views/thesis-bank/thesis/index.js new file mode 100644 index 0000000..2c19a67 --- /dev/null +++ b/src/views/thesis-bank/thesis/index.js @@ -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 ( + + + + ); +}