Skip to content

Commit b6ee47a

Browse files
committed
adjust button margins, remove dead code
1 parent c9ee089 commit b6ee47a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/components/elements/quiz/QuizContentsComponent.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ function QuizDetails({attempt, sections, questions, pageLink}: QuizAttemptProps)
122122
function QuizHeader({attempt, preview, view, user}: QuizAttemptProps | QuizViewProps) {
123123
const dispatch = useAppDispatch();
124124
if (view) {
125-
return isTeacherOrAbove(user) && <Button className="float-end ms-2 mb-2" onClick={() => dispatch(showQuizSettingModal(view.quiz!))}>Set Test</Button>;
125+
return isTeacherOrAbove(user) && <Button className="float-end ms-3 mb-3" onClick={() => dispatch(showQuizSettingModal(view.quiz!))}>Set Test</Button>;
126126
}
127127
else if (preview) {
128128
return <>
129-
{preview && <EditContentButton doc={attempt.quiz} />}
129+
<EditContentButton doc={attempt.quiz} />
130130
<div data-testid="quiz-action" className="d-flex">
131-
<p>{ preview ? "You are previewing this test." : "You are viewing the rubric for this test."}</p>
131+
<p>You are previewing this test.</p>
132132
<Spacer />
133133
{isTeacherOrAbove(user) && <Button onClick={() => dispatch(showQuizSettingModal(attempt.quiz!))}>Set Test</Button>}
134134
</div>

0 commit comments

Comments
 (0)