File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
frontend/src/components/QnTable Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,14 @@ import {
12
12
Tag ,
13
13
Center ,
14
14
IconButton ,
15
+ Text ,
15
16
} from "@chakra-ui/react" ;
16
17
import { Paginator } from "../Paginator/Paginator.component" ;
17
18
import { Question } from "../../models/Quesiton.model" ;
18
19
import { diffToScheme , isAdmin } from "../../helper/UIHelper" ;
19
20
import { DeleteIcon } from "@chakra-ui/icons" ;
20
21
import { deleteDummyQn } from "../../data/sampleqn" ;
22
+ import { Link } from "react-router-dom" ;
21
23
22
24
export type TableProp = {
23
25
filteredQn : Question [ ] ;
@@ -27,7 +29,11 @@ export type TableProp = {
27
29
const QnEntry = ( qn : Question ) => {
28
30
return (
29
31
< Tr >
30
- < Td > { qn . displayedQuestion } </ Td >
32
+ < Td >
33
+ < Link to = { `/view/${ qn . id } ` } >
34
+ < Text > { qn . displayedQuestion } </ Text >
35
+ </ Link >
36
+ </ Td >
31
37
< Td >
32
38
< HStack spacing = { 1 } >
33
39
{ qn . categories . map ( ( qntype ) => (
You can’t perform that action at this time.
0 commit comments