Skip to content

Commit

Permalink
Merge pull request #241 from bcgov/global-provision-update
Browse files Browse the repository at this point in the history
add list to global provision view
  • Loading branch information
mgtennant authored Oct 8, 2024
2 parents 1584b5a + e066744 commit 6db290d
Showing 1 changed file with 15 additions and 0 deletions.
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

0 comments on commit 6db290d

Please sign in to comment.