-
- This is just some dummy text describing the gift and
- should be replaced.
-
+ {surprise.description}
- Valid through{" "}
+ {intl.formatMessage({ id: "Valid through" })}{" "}
{dt(surprise.endsAt)
.locale(lang)
.format("DD MMM YYYY")}
diff --git a/components/Webviews/AccountPage/index.tsx b/components/Webviews/AccountPage/index.tsx
index b7b651627..572ea485e 100644
--- a/components/Webviews/AccountPage/index.tsx
+++ b/components/Webviews/AccountPage/index.tsx
@@ -30,6 +30,7 @@ export default async function AccountPage() {
{linkToOverview ? : null}
+
>
)
diff --git a/i18n/dictionaries/da.json b/i18n/dictionaries/da.json
index 19cd02e5f..1bbfdcd6d 100644
--- a/i18n/dictionaries/da.json
+++ b/i18n/dictionaries/da.json
@@ -304,6 +304,7 @@
"Use bonus cheque": "Brug Bonus Cheque",
"Use code/voucher": "Brug kode/voucher",
"User information": "Brugeroplysninger",
+ "Valid through": "Gyldig igennem",
"View as list": "Vis som liste",
"View as map": "Vis som kort",
"View your booking": "Se din booking",
diff --git a/i18n/dictionaries/de.json b/i18n/dictionaries/de.json
index 571a43dca..a5c32a198 100644
--- a/i18n/dictionaries/de.json
+++ b/i18n/dictionaries/de.json
@@ -304,6 +304,7 @@
"Use bonus cheque": "Bonusscheck nutzen",
"Use code/voucher": "Code/Gutschein nutzen",
"User information": "Nutzerinformation",
+ "Valid through": "Gültig bis",
"View as list": "Als Liste anzeigen",
"View as map": "Als Karte anzeigen",
"View your booking": "Ihre Buchung ansehen",
diff --git a/i18n/dictionaries/en.json b/i18n/dictionaries/en.json
index 5d6e999e3..2299d715b 100644
--- a/i18n/dictionaries/en.json
+++ b/i18n/dictionaries/en.json
@@ -128,8 +128,8 @@
"Gift(s) added to your benefits": "{amount, plural, one {Gift} other {Gifts}} added to your benefits",
"Go back to edit": "Go back to edit",
"Go back to overview": "Go back to overview",
- "Guest": "Guest",
"Go to My Benefits": "Go to My Benefits",
+ "Guest": "Guest",
"Guest information": "Guest information",
"Guests & Rooms": "Guests & Rooms",
"Hi": "Hi",
@@ -321,6 +321,7 @@
"Use code/voucher": "Use code/voucher",
"User information": "User information",
"VAT": "VAT",
+ "Valid through": "Valid through",
"View as list": "View as list",
"View as map": "View as map",
"View your booking": "View your booking",
diff --git a/i18n/dictionaries/fi.json b/i18n/dictionaries/fi.json
index cbfe95d93..8a98227fa 100644
--- a/i18n/dictionaries/fi.json
+++ b/i18n/dictionaries/fi.json
@@ -305,6 +305,7 @@
"Use bonus cheque": "Käytä bonussekkiä",
"Use code/voucher": "Käytä koodia/voucheria",
"User information": "Käyttäjän tiedot",
+ "Valid through": "Voimassa läpi",
"View as list": "Näytä listana",
"View as map": "Näytä kartalla",
"View your booking": "Näytä varauksesi",
diff --git a/i18n/dictionaries/no.json b/i18n/dictionaries/no.json
index 0d1e73732..2feec1e8c 100644
--- a/i18n/dictionaries/no.json
+++ b/i18n/dictionaries/no.json
@@ -302,6 +302,7 @@
"Use bonus cheque": "Bruk bonussjekk",
"Use code/voucher": "Bruk kode/voucher",
"User information": "Brukerinformasjon",
+ "Valid through": "Gyldig gjennom",
"View as list": "Vis som liste",
"View as map": "Vis som kart",
"View your booking": "Se din bestilling",
diff --git a/i18n/dictionaries/sv.json b/i18n/dictionaries/sv.json
index c2398bdf7..300b0141d 100644
--- a/i18n/dictionaries/sv.json
+++ b/i18n/dictionaries/sv.json
@@ -302,6 +302,7 @@
"Use bonus cheque": "Använd bonuscheck",
"Use code/voucher": "Använd kod/voucher",
"User information": "Användarinformation",
+ "Valid through": "Giltig t.o.m.",
"View as list": "Visa som lista",
"View as map": "Visa som karta",
"View your booking": "Visa din bokning",
diff --git a/server/routers/contentstack/reward/output.ts b/server/routers/contentstack/reward/output.ts
index 236b29c62..5bd2c7d75 100644
--- a/server/routers/contentstack/reward/output.ts
+++ b/server/routers/contentstack/reward/output.ts
@@ -11,7 +11,15 @@ const Coupon = z.object({
}),
name: z.string().optional(),
claimedAt: z.string().datetime({ offset: true }).optional(),
- // redeemedAt: z.string().datetime({ offset: true }).optional(),
+ redeemedAt: z
+ .date({ coerce: true })
+ .optional()
+ .transform((value) => {
+ if (value?.getFullYear() === 1) {
+ return null
+ }
+ return value
+ }),
type: z.string().optional(),
value: z.number().optional(),
pool: z.string().optional(),
diff --git a/types/components/blocks/currentRewards.ts b/types/components/blocks/currentRewards.ts
deleted file mode 100644
index 7e6d8561c..000000000
--- a/types/components/blocks/currentRewards.ts
+++ /dev/null
@@ -1,10 +0,0 @@
-import { ApiReward, Reward } from "@/server/routers/contentstack/reward/output"
-
-import { SafeUser } from "@/types/user"
-
-export type CurrentRewardsClientProps = {
- initialCurrentRewards: {
- rewards: Reward[]
- nextCursor: number | undefined
- }
-}