Skip to content

Commit

Permalink
Merge pull request #372 from slu-csci-5030/bworks_App
Browse files Browse the repository at this point in the history
Bworks app
  • Loading branch information
Chirag2x authored May 8, 2024
2 parents 6385987 + 38b2a36 commit 2e79178
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
Empty file added client-app/source
Empty file.
11 changes: 11 additions & 0 deletions client-app/src/Components/DonatedItemsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ function DonatedItemsList() {
<th>Program</th>
<th>Status</th>
<th>Barcode</th>
{assignProgramClicked && <th>Select</th>}
</tr>
</thead>
<tbody>
Expand All @@ -224,13 +225,23 @@ function DonatedItemsList() {
<td>{item.date}</td>
<td>{item.program}</td>
<td>{item.status}</td>

<td>
<div onClick={() => handleBarcodeClick(item.id)}>
<div id={`barcode-${item.id}`}><Barcode value={item.id.toString()} /></div>
<button onClick={() => downloadBarcode(item.id)}>Download Barcode</button>
</div>

</td>
{assignProgramClicked && (
<td>
<input
type="checkbox"
checked={selectedItems.includes(item.id)}
onChange={() => handleCheckboxChange(item.id)}
/>
</td>
)}
</tr>
))}
</tbody>
Expand Down
3 changes: 2 additions & 1 deletion client-app/src/Components/DonorForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,8 @@ const DonorForm = () => {
type="button"
className="bg-blue-500 hover:bg-blue-700 text-white font-semibold py-2 px-4 rounded-full button-margin"
style={{ backgroundColor: 'blue' }}
onClick={() => setFormData({ ...formData, email_opt_in: '' })}>
//onClick={() => setFormData({ ...formData, email_opt_in: '' })}
>
Refresh
</button>
</form>
Expand Down

0 comments on commit 2e79178

Please sign in to comment.