Skip to content

Commit

Permalink
SurveyResponse: update bg color of user text
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannaPeanut committed Jan 8, 2025
1 parent 6e67dfd commit 41f3b4e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const EditableSurveyResponseUserText: React.FC<EditableSurveyResponseUserTextPro
<div>
{/* @ts-expect-error `data` is of type unkown */}
{response.data[userTextIndices[0]] && (
<blockquote className={clsx("p-4", "bg-yellow-100")}>
<blockquote className={clsx("p-4", "bg-purple-100")}>
<h4 className="mb-2 font-semibold">
{feedbackQuestions.find((q) => q.id === userTextIndices[0])?.label.de}
</h4>
Expand All @@ -41,7 +41,7 @@ const EditableSurveyResponseUserText: React.FC<EditableSurveyResponseUserTextPro
// @ts-expect-error `data` is of type unkown
response.data[userTextIndices[0]] && response.data[userTextIndices[1]]
? "bg-blue-50"
: "bg-yellow-100",
: "bg-purple-100",
)}
>
<h4 className="mb-2 font-semibold">
Expand All @@ -63,7 +63,7 @@ const EditableSurveyResponseUserText: React.FC<EditableSurveyResponseUserTextPro
/* @ts-expect-error `data` is of type unkown */
if (!response.data[userTextIndex]) return null
return (
<div key={userTextIndex} className="bg-yellow-100 p-4">
<div key={userTextIndex} className="bg-purple-100 p-4">
{/* @ts-expect-error `data` is of type unkown */}
<Markdown markdown={response.data[userTextIndex]} />
<div className="mt-2 text-sm text-gray-500">
Expand Down

0 comments on commit 41f3b4e

Please sign in to comment.