Skip to content

Commit

Permalink
Refactored Queue Forms to make consistent with other forms and betwee…
Browse files Browse the repository at this point in the history
…n each other
  • Loading branch information
ryantanen committed Oct 13, 2024
1 parent 6921ea8 commit 853bd07
Show file tree
Hide file tree
Showing 10 changed files with 683 additions and 853 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import Snackbar from "@material-ui/core/Snackbar";
import InstructorQueues from "./InstructorQueues";
import Announcements from "../Announcements";
import QueueSettings from "./QueueSettings/QueueSettings";
import CreateQueue from "./CreateQueue/CreateQueue";
import QueueCreate from "./QueueCreate/QueueCreate";
import { AuthUserContext } from "../../../context/auth";
import { useQueues, useStaff } from "../../../hooks/data-fetching/course";
import {
Expand Down Expand Up @@ -143,7 +143,7 @@ const InstructorQueuePage = (props: InstructorQueuePageProps) => {
)}
{pageState.kind === PageStateEnum.CREATE && (
<Grid.Row style={{ marginTop: "1rem" }}>
<CreateQueue
<QueueCreate
courseId={courseId}
mutate={mutate}
successFunc={() => setSuccess(true)}
Expand Down
24 changes: 13 additions & 11 deletions frontend/components/Course/InstructorQueuePage/QuestionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -197,17 +197,19 @@ const QuestionCard = (props: QuestionCardProps) => {
inverted
position="left center"
/>
<QuestionTimer
questionStartTime={
question.timeResponseStarted ||
question.timeAsked
}
timerStartTime={
(queue.questionTimerEnabled &&
queue.questionTimerStartTime) ||
10
}
/>
{queue.questionTimerEnabled &&
question.timeResponseStarted && (
<QuestionTimer
questionStartTime={
question.timeResponseStarted
}
timerStartTime={
(queue.questionTimerEnabled &&
queue.questionTimerStartTime) ||
10
}
/>
)}
</div>
</Header>
</div>
Expand Down
Loading

0 comments on commit 853bd07

Please sign in to comment.