|
-
View Payment Details
@@ -88,7 +88,7 @@
Or copy and paste this link into your browser:
- https://rezije.app/share/location/${shareId}
+ https://rezije.app/share/bills-due/${shareId}
diff --git a/email-worker/email-templates/email-template--rent-due--hr.html b/email-worker/email-templates/email-template--rent-due--hr.html
index 6ba35b3..7fb676a 100644
--- a/email-worker/email-templates/email-template--rent-due--hr.html
+++ b/email-worker/email-templates/email-template--rent-due--hr.html
@@ -76,7 +76,7 @@
|
-
Pogledaj detalje uplate
@@ -88,7 +88,7 @@
Ili kopirajte i zalijepite ovaj link u svoj preglednik:
- https://rezije.app/share/location/${shareId}
+ https://rezije.app/share/bills-due/${shareId}
diff --git a/email-worker/email-templates/email-template--util-bills-due--en.html b/email-worker/email-templates/email-template--util-bills-due--en.html
index 606db8b..145d130 100644
--- a/email-worker/email-templates/email-template--util-bills-due--en.html
+++ b/email-worker/email-templates/email-template--util-bills-due--en.html
@@ -76,7 +76,7 @@
|
-
View Payment Details
@@ -88,7 +88,7 @@
Or copy and paste this link into your browser:
- https://rezije.app/share/location/${shareId}
+ https://rezije.app/share/bills-due/${shareId}
diff --git a/email-worker/email-templates/email-template--util-bills-due--hr.html b/email-worker/email-templates/email-template--util-bills-due--hr.html
index 35fc6f1..96be63f 100644
--- a/email-worker/email-templates/email-template--util-bills-due--hr.html
+++ b/email-worker/email-templates/email-template--util-bills-due--hr.html
@@ -76,7 +76,7 @@
|
-
Pogledaj detalje uplate
@@ -88,7 +88,7 @@
Ili kopirajte i zalijepite ovaj link u svoj preglednik:
- https://rezije.app/share/location/${shareId}
+ https://rezije.app/share/bills-due/${shareId}
diff --git a/sprints/email-worker.md b/sprints/email-worker.md
index 60bc541..c6d5e0f 100644
--- a/sprints/email-worker.md
+++ b/sprints/email-worker.md
@@ -113,7 +113,7 @@ Address: BillingLocation-tenantEmail
Your rent for the apartment ${location.name} is due today.
-For details and payment options please click the following link: Rent details
+For details and payment options please click the following link: Rent details
Thank you!
@@ -154,7 +154,7 @@ Address: BillingLocation-tenantEmail
Your utility bills for the apartment ${location.name} are due today.
-For details and payment options please click the following link: Utility Bills
+For details and payment options please click the following link: Utility Bills
Thank you!
diff --git a/web-app/app/[locale]/share/location/[id]/LocationViewPage.tsx b/web-app/app/[locale]/share/bills-due/[id]/LocationViewPage.tsx
similarity index 100%
rename from web-app/app/[locale]/share/location/[id]/LocationViewPage.tsx
rename to web-app/app/[locale]/share/bills-due/[id]/LocationViewPage.tsx
diff --git a/web-app/app/[locale]/share/location/[id]/page.tsx b/web-app/app/[locale]/share/bills-due/[id]/page.tsx
similarity index 100%
rename from web-app/app/[locale]/share/location/[id]/page.tsx
rename to web-app/app/[locale]/share/bills-due/[id]/page.tsx
diff --git a/web-app/app/lib/actions/billActions.ts b/web-app/app/lib/actions/billActions.ts
index a60ea3a..1438dc2 100644
--- a/web-app/app/lib/actions/billActions.ts
+++ b/web-app/app/lib/actions/billActions.ts
@@ -627,7 +627,7 @@ export const uploadProofOfPayment = async (
await cleanupExpiredShares(dbClient);
// 8. REVALIDATE CACHE
- revalidatePath(`/share/location/${shareId}`, 'page');
+ revalidatePath(`/share/bills-due/${shareId}`, 'page');
return { success: true };
diff --git a/web-app/app/lib/actions/locationActions.ts b/web-app/app/lib/actions/locationActions.ts
index be5da4c..f11c4e5 100644
--- a/web-app/app/lib/actions/locationActions.ts
+++ b/web-app/app/lib/actions/locationActions.ts
@@ -775,7 +775,7 @@ export const uploadUtilBillsProofOfPayment = async (
);
// 7. REVALIDATE CACHE
- revalidatePath(`/share/location/${shareId}`, 'page');
+ revalidatePath(`/share/bills-due/${shareId}`, 'page');
return { success: true };
} catch (error: any) {
@@ -823,7 +823,7 @@ export const generateShareLink = withUser(
// Build share URL
const baseUrl = process.env.NEXTAUTH_URL || 'http://localhost:3000';
- const shareUrl = `${baseUrl}/share/location/${shareId}`;
+ const shareUrl = `${baseUrl}/share/bills-due/${shareId}`;
return { shareUrl };
}
diff --git a/web-app/app/ui/ViewBillCard.tsx b/web-app/app/ui/ViewBillCard.tsx
index 9f252e2..0f80257 100644
--- a/web-app/app/ui/ViewBillCard.tsx
+++ b/web-app/app/ui/ViewBillCard.tsx
@@ -167,7 +167,7 @@ export const ViewBillCard: FC = ({ location, bill, shareId })
}
- {t("back-button")}
+ {t("back-button")}
| | | |