From 7530cc5f7ec3578d7103ec62b633c23318eca4cd Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Thu, 8 Jan 2026 01:15:25 +0100 Subject: [PATCH] Refactor Instagram metadata rendering in QuizRunner.tsx --- client/src/components/QuizRunner.tsx | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/client/src/components/QuizRunner.tsx b/client/src/components/QuizRunner.tsx index 2e3a903..ec1a5c0 100644 --- a/client/src/components/QuizRunner.tsx +++ b/client/src/components/QuizRunner.tsx @@ -171,6 +171,8 @@ function QuestionRenderer({ ); } +import IgMetaBlock from './IgMetaBlock'; + function ExplanationPanel({ question, targets }: { question: QuizQuestionWithEntry; targets: TargetHit[] }) { return (
@@ -205,31 +207,7 @@ function ExplanationPanel({ question, targets }: { question: QuizQuestionWithEnt

No linked study items were found for this question.

)} - {question.ig_meta && ( -
- {question.ig_meta.profile_pic_url ? ( - - {question.ig_meta.username - - ) : ( -
- )} -
-
- {question.ig_meta.username ? ( - - {question.ig_meta.username} - - ) : ( - Instagram - )} - {question.ig_meta.full_name && ยท {question.ig_meta.full_name}} -
-
{question.ig_meta.post_date || ''}
- {question.ig_meta.description &&

{question.ig_meta.description}

} -
-
- )} + {question.ig_meta && }
); }