diff --git a/app/ui/ViewLocationCard.tsx b/app/ui/ViewLocationCard.tsx index 4bd69ca..d77fed0 100644 --- a/app/ui/ViewLocationCard.tsx +++ b/app/ui/ViewLocationCard.tsx @@ -122,41 +122,45 @@ export const ViewLocationCard:FC = ({location, userSettin : null } - {attachment ? ( -
- - - {decodeURIComponent(attachment.fileName)} - -
- ) : ( -
- -
- - {isUploading && ( - +
+ {t("upload-proof-of-payment-legend")} + + {attachment ? ( +
+ + + {decodeURIComponent(attachment.fileName)} + +
+ ) : ( +
+ +
+ + {isUploading && ( + + )} +
+ {uploadError && ( +

{uploadError}

)}
- {uploadError && ( -

{uploadError}

- )} -
- )} + )} +
); }; \ No newline at end of file diff --git a/messages/en.json b/messages/en.json index ec106d6..7b4cb2c 100644 --- a/messages/en.json +++ b/messages/en.json @@ -68,7 +68,8 @@ "payment-reference-label": "Reference number:", "payment-purpose-code-label": "Purpose code:", "payment-description-label": "Payment description:", - "upload-proof-of-payment-label": "Upload proof of payment:" + "upload-proof-of-payment-legend": "Proof of payment", + "upload-proof-of-payment-label": "Here you can upload proof of payment:" }, "month-card": { "payed-total-label": "Total monthly expenditure:", diff --git a/messages/hr.json b/messages/hr.json index d0edbb2..0591a95 100644 --- a/messages/hr.json +++ b/messages/hr.json @@ -68,7 +68,8 @@ "payment-reference-label": "Poziv na broj:", "payment-purpose-code-label": "Šifra namjene:", "payment-description-label": "Opis plaćanja:", - "upload-proof-of-payment-label": "Priložite potvrdu o uplati:" + "upload-proof-of-payment-legend": "Potvrda o uplati", + "upload-proof-of-payment-label": "Ovdje možete priložiti potvrdu o uplati:" }, "month-card": { "payed-total-label": "Ukupni mjesečni trošak:",