From 6bfa0072b962636d70cd1379da75d9fea16dacd1 Mon Sep 17 00:00:00 2001
From: Harsh Mahajan <127186841+HarshMN2345@users.noreply.github.com>
Date: Tue, 30 Sep 2025 20:12:39 +0530
Subject: [PATCH] refactor the flow for push notifcations
---
.../(type)/(components)/schedule.svelte | 36 +++++++++----------
.../create-[type]/(type)/email.svelte | 2 +-
.../create-[type]/(type)/push.svelte | 2 +-
.../messaging/create-[type]/(type)/sms.svelte | 2 +-
4 files changed, 20 insertions(+), 22 deletions(-)
diff --git a/src/routes/(console)/project-[region]-[project]/messaging/create-[type]/(type)/(components)/schedule.svelte b/src/routes/(console)/project-[region]-[project]/messaging/create-[type]/(type)/(components)/schedule.svelte
index 115c5a4d2..c6ab1e4e9 100644
--- a/src/routes/(console)/project-[region]-[project]/messaging/create-[type]/(type)/(components)/schedule.svelte
+++ b/src/routes/(console)/project-[region]-[project]/messaging/create-[type]/(type)/(components)/schedule.svelte
@@ -21,15 +21,18 @@
const options = [
{ label: 'Now', value: 'now' },
- { label: 'Schedule', value: 'later' }
+ { label: 'Custom', value: 'later' }
];
- const formatOptions: Intl.DateTimeFormatOptions = {
+ const dateOptions: Intl.DateTimeFormatOptions = {
month: 'long',
day: 'numeric',
- year: 'numeric',
+ year: 'numeric'
+ };
+ const timeOptions: Intl.DateTimeFormatOptions = {
hour: 'numeric',
minute: 'numeric',
+ second: 'numeric',
hourCycle: 'h23',
timeZoneName: 'longGeneric'
};
@@ -57,28 +60,23 @@