Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
students
quiz-competition
Commits
09f1a662
Commit
09f1a662
authored
Nov 05, 2020
by
baesangjune
Browse files
..
parent
c4fea74c
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/client/src/App.js
View file @
09f1a662
...
@@ -9,7 +9,7 @@ function App() {
...
@@ -9,7 +9,7 @@ function App() {
<
BrowserRouter
>
<
BrowserRouter
>
<
MainRouter
/>
<
MainRouter
/>
<
Switch
>
<
Switch
>
<
Route
path
=
"
/problems
"
component
=
{
Problems
}
/
>
<
Route
path
=
"
/problems
/:id
"
component
=
{
Problems
}
/
>
<
/Switch
>
<
/Switch
>
<
/BrowserRouter
>
<
/BrowserRouter
>
<
/AuthProvider
>
<
/AuthProvider
>
...
...
src/client/src/core/Warning.jsx
View file @
09f1a662
...
@@ -67,13 +67,16 @@ function Warning() {
...
@@ -67,13 +67,16 @@ function Warning() {
>
>
{
courses
.
map
((
course
,
i
)
=>
(
{
courses
.
map
((
course
,
i
)
=>
(
<
option
key
=
{
i
}
value
=
{
i
}
>
<
option
key
=
{
i
}
value
=
{
course
.
_id
}
>
{
course
.
name
}
{
course
.
name
}
</
option
>
</
option
>
))
}
))
}
</
Form
.
Control
>
</
Form
.
Control
>
<
div
className
=
"text-right"
>
<
div
className
=
"text-right"
>
<
Link
to
=
"/problems"
>
<
Link
to
=
{
{
pathname
:
`/problems/
${
course
.
value
}
`
,
state
:
` _id:
${
course
.
value
}
`
}
}
>
<
a
className
=
"btn btn-danger"
>
Quiz Start
</
a
>
<
a
className
=
"btn btn-danger"
>
Quiz Start
</
a
>
</
Link
>
</
Link
>
{
/* <a href="#" class="card-link">Another link</a> */
}
{
/* <a href="#" class="card-link">Another link</a> */
}
...
...
src/client/src/quiz/Problems.jsx
View file @
09f1a662
...
@@ -216,3 +216,19 @@
...
@@ -216,3 +216,19 @@
// // }
// // }
// // export default Problems;
// // export default Problems;
import
React
,
{
useState
,
useEffect
}
from
'
react
'
import
{
Link
,
Redirect
}
from
'
react-router-dom
'
;
// import Timer from 'react-compound-timer'; // 타이머쓰기위해 import
import
Quiz
,
{
quiz
}
from
'
./Quiz
'
function
problems
(
props
){
console
.
log
(
props
)
Quiz
()
return
<
div
>
테스트
{
console
.
log
(
'
qquiz=
'
)
}
</
div
>
}
export
default
problems
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment