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