Skip to content
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

add list to global provision view #241

Merged
merged 2 commits into from
Oct 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,21 @@ const GlobalProvisionModal: FC<GlobalProvisionModalProps> = ({ provision, show,
value={provision?.free_text}
style={{ minHeight: '100px' }}
/>
<label style={{ marginTop: '15px', fontWeight: 'bold' }}>List Items:</label>
{/** map list items here, the object is a string list accessible with: provision?.list */}
{provision && provision.list_items && provision.list_items.length > 0 ? (
provision?.list_items.map((item, index) => (
<input
key={index}
className="form-control readonlyInput"
readOnly
value={item}
style={{ marginBottom: '5px' }}
/>
))
) : (
<input className="form-control readonlyInput" readOnly value="" style={{ marginBottom: '5px' }} />
)}
<label style={{ marginTop: '15px', fontWeight: 'bold' }}>Help Text:</label>
<textarea
className="form-control readonlyInput"
Expand Down
Loading