Skip to content

Commit

Permalink
format questionare response
Browse files Browse the repository at this point in the history
  • Loading branch information
mozzy11 committed Sep 26, 2023
1 parent 78a7c9f commit 339d652
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 15 deletions.
16 changes: 11 additions & 5 deletions frontend/src/components/cytology/CytologyCaseView.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,17 @@ export const QuestionnaireResponse = ({ questionnaireResponse }) => {
return (
<>
<div className="questionnaireResponseItem">
{item.text}:
{item.answer &&
item.answer.map((answer, index) => {
return <span key={index}>{renderAnswer(answer)}</span>;
})}
<Grid>
<Column lg={6} md={8} sm={4}>
<h6> {item.text}:</h6>
</Column>
<Column lg={10} md={8} sm={4}>
{item.answer &&
item.answer.map((answer, index) => {
return <Tag key={index}>{renderAnswer(answer)}</Tag>;
})}
</Column>
</Grid>
</div>
</>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,15 @@ export const QuestionnaireResponse = ({ questionnaireResponse }) => {
return (
<>
<div className="questionnaireResponseItem">
{item.text}:
{item.answer &&
item.answer.map((answer, index) => {
return <span key={index}>{renderAnswer(answer)}</span>;
})}
<Grid>
<Column lg={6} md={8} sm={4}><h6>{item.text}:</h6> </Column>
<Column lg={10} md={8} sm={4}>
{item.answer &&
item.answer.map((answer, index) => {
return <Tag key={index}>{renderAnswer(answer)}</Tag>;
})}
</Column>
</Grid>
</div>
</>
);
Expand Down
16 changes: 11 additions & 5 deletions frontend/src/components/pathology/PathologyCaseView.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,17 @@ export const QuestionnaireResponse = ({ questionnaireResponse }) => {
return (
<>
<div className="questionnaireResponseItem">
{item.text}:
{item.answer &&
item.answer.map((answer, index) => {
return <span key={index}>{renderAnswer(answer)}</span>;
})}
<Grid>
<Column lg={6} md={8} sm={4}>
<h6>{item.text}:</h6>
</Column>
<Column lg={10} md={8} sm={4}>
{item.answer &&
item.answer.map((answer, index) => {
return <Tag key={index}>{renderAnswer(answer)}</Tag>;
})}
</Column>
</Grid>
</div>
</>
);
Expand Down

0 comments on commit 339d652

Please sign in to comment.