-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Conditional Rendering of TextAreaFormField for Sample Test Type #8960
base: develop
Are you sure you want to change the base?
Fix Conditional Rendering of TextAreaFormField for Sample Test Type #8960
Conversation
✅ Deploy Preview for care-ohc ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rithviknishad Can I add extra space after type for that or just display it inline? |
you can add it to the right (2nd col. of the grid) like others |
@rithviknishad requested changes done |
@@ -25,6 +25,7 @@ export const SampleDetails = ({ id }: DetailRoute) => { | |||
if (!(res?.ok && data)) { | |||
navigate("/not-found"); | |||
} | |||
console.log(data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's remove this console.log 👍
{sampleDetails?.sample_type === "OTHER TYPE" && ( | ||
<div> | ||
<span className="font-semibold capitalize leading-relaxed"> | ||
Sample Type Description: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a space after the colon, similar to what's there for other titles.
On a side note, now's probably the time to add in translations for these titles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So shall I need to add translation for each field title?
Proposed Changes
TextAreaFormField
on "OTHER TYPE" selections in the sample type dropdown.@ohcnetwork/care-fe-code-reviewers
Merge Checklist