Rename proof of payment file input and update link text in ViewLocationCard component

This commit is contained in:
Knee Cola
2025-11-22 23:33:32 +01:00
parent c235b94a72
commit 82d29b39c3

View File

@@ -79,14 +79,14 @@ export const ViewLocationCard:FC<ViewLocationCardProps> = ({location, userSettin
} }
<Link href={`/proof-of-payment/locationID/`} target="_blank" className='text-center w-full max-w-[20em] text-nowrap truncate inline-block mt-4'> <Link href={`/proof-of-payment/locationID/`} target="_blank" className='text-center w-full max-w-[20em] text-nowrap truncate inline-block mt-4'>
<DocumentIcon className="h-[1em] w-[1em] text-2xl inline-block mr-1" /> <DocumentIcon className="h-[1em] w-[1em] text-2xl inline-block mr-1" />
potvrda-o-uplati.pdf utility-bills-proof-of-payment.pdf
{/*decodeURIComponent(attachment.fileName)*/} {/*decodeURIComponent(utilBillsProofOfPaymentAttachment.fileName)*/}
</Link> </Link>
<div className="form-control w-full mb-4"> <div className="form-control w-full mb-4">
<label className="label"> <label className="label">
<span className="label-text">{t("upload-proof-of-payment-label")}</span> <span className="label-text">{t("upload-proof-of-payment-label")}</span>
</label> </label>
<input id="proofOfPaymentAttachment" name="proofOfPaymentAttachment" type="file" className="file-input file-input-bordered grow file-input-s my-2 block max-w-[17em] md:max-w-[80em] break-words" /> <input id="utilBillsProofOfPaymentAttachment" name="utilBillsProofOfPaymentAttachment" type="file" className="file-input file-input-bordered grow file-input-s my-2 block max-w-[17em] md:max-w-[80em] break-words" />
</div> </div>
</div> </div>
</div>); </div>);