diff --git a/components/ExerciseCard/ExerciseCard.tsx b/components/ExerciseCard/ExerciseCard.tsx index 9d5765157..3062cc2c1 100644 --- a/components/ExerciseCard/ExerciseCard.tsx +++ b/components/ExerciseCard/ExerciseCard.tsx @@ -105,7 +105,7 @@ const ExerciseCard = ({ )} - + ) } diff --git a/components/ExerciseReportCard/ExerciseReportCard.test.js b/components/ExerciseReportCard/ExerciseReportCard.test.js index b5dff2aae..0d5dc6873 100644 --- a/components/ExerciseReportCard/ExerciseReportCard.test.js +++ b/components/ExerciseReportCard/ExerciseReportCard.test.js @@ -35,7 +35,7 @@ describe('ExerciseReportCard Component', () => { render( - + ) @@ -54,7 +54,7 @@ describe('ExerciseReportCard Component', () => { render( - + ) diff --git a/components/ExerciseReportCard/ExerciseReportCard.tsx b/components/ExerciseReportCard/ExerciseReportCard.tsx index 5d569e4d2..ec228c65a 100644 --- a/components/ExerciseReportCard/ExerciseReportCard.tsx +++ b/components/ExerciseReportCard/ExerciseReportCard.tsx @@ -85,10 +85,9 @@ const Body = ({ type Props = { exerciseId: number - answerShown: boolean } -const ExerciseReportCard = ({ exerciseId, answerShown }: Props) => { +const ExerciseReportCard = ({ exerciseId }: Props) => { const [reportMode, setReportMode] = useState(false) const [description, setDescription] = useState('') const [flagExercise, { data, loading, error }] = useFlagExerciseMutation({ @@ -98,11 +97,9 @@ const ExerciseReportCard = ({ exerciseId, answerShown }: Props) => { } }) - const marginOnExpand = answerShown ? 'mt-5' : '' - if (data && !loading) { return ( -
+
Reported a mistake in this exercise

We appreciate your input. We will shortly investigate the problem that @@ -113,17 +110,20 @@ const ExerciseReportCard = ({ exerciseId, answerShown }: Props) => { } return ( -

+
{reportMode ? ( - + <> +
+ + ) : (
)