fix(test): fix context image url path #6
@ -1703,16 +1703,15 @@ export const Test = () => {
|
|||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{currentQuestion?.context_image_url &&
|
{currentQuestion?.context_image_url && (
|
||||||
currentQuestion.context_image_url !== "NULL" && (
|
<div className="t-card p-6">
|
||||||
<div className="t-card p-6">
|
<img
|
||||||
<img
|
src={currentQuestion.context_image_url}
|
||||||
src="https://placehold.co/600x400"
|
alt="Question context"
|
||||||
alt="Question context"
|
className="w-full h-auto rounded-xl"
|
||||||
className="w-full h-auto rounded-xl"
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
)}
|
||||||
)}
|
|
||||||
<div className="t-card t-card-purple p-6">
|
<div className="t-card t-card-purple p-6">
|
||||||
<p className="font-bold text-lg text-[#1e1b4b] leading-relaxed">
|
<p className="font-bold text-lg text-[#1e1b4b] leading-relaxed">
|
||||||
{currentQuestion?.text &&
|
{currentQuestion?.text &&
|
||||||
@ -1755,26 +1754,24 @@ export const Test = () => {
|
|||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
{currentQuestion?.context_image_url &&
|
{currentQuestion?.context_image_url && (
|
||||||
currentQuestion.context_image_url !== "NULL" && (
|
<div className="t-card p-6">
|
||||||
<div className="t-card p-6">
|
<img
|
||||||
<img
|
src={currentQuestion.context_image_url}
|
||||||
src="https://placehold.co/600x400"
|
alt="Question context"
|
||||||
alt="Question context"
|
className="w-full h-auto rounded-xl"
|
||||||
className="w-full h-auto rounded-xl"
|
/>
|
||||||
/>
|
</div>
|
||||||
</div>
|
)}
|
||||||
)}
|
{currentQuestion?.context && (
|
||||||
{currentQuestion?.context &&
|
<div className="t-card p-6">
|
||||||
currentQuestion.context !== "NULL" && (
|
<HighlightableRichText
|
||||||
<div className="t-card p-6">
|
fieldKey={`${currentQuestion?.id ?? "unknown"}:context`}
|
||||||
<HighlightableRichText
|
text={currentQuestion.context}
|
||||||
fieldKey={`${currentQuestion?.id ?? "unknown"}:context`}
|
className="font-semibold text-gray-700 leading-relaxed"
|
||||||
text={currentQuestion.context}
|
/>
|
||||||
className="font-semibold text-gray-700 leading-relaxed"
|
</div>
|
||||||
/>
|
)}
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user