From c66383c2e36e435f435b396c7f6d3375a207f944 Mon Sep 17 00:00:00 2001 From: Steven Nguyen Date: Thu, 30 Nov 2023 12:10:15 -0800 Subject: [PATCH] Update message detail to show SMS preview --- .../messaging/message-[message]/+page.svelte | 3 ++ .../message-[message]/smsPreview.svelte | 29 +++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 src/routes/console/project-[project]/messaging/message-[message]/smsPreview.svelte diff --git a/src/routes/console/project-[project]/messaging/message-[message]/+page.svelte b/src/routes/console/project-[project]/messaging/message-[message]/+page.svelte index 1867a5dacd..8c5734c02a 100644 --- a/src/routes/console/project-[project]/messaging/message-[message]/+page.svelte +++ b/src/routes/console/project-[project]/messaging/message-[message]/+page.svelte @@ -5,12 +5,15 @@ import Overview from './overview.svelte'; import { message } from './store'; import { ProviderTypes } from '../providerType.svelte'; + import SMSPreview from './smsPreview.svelte'; {#if $message.providerType === ProviderTypes.Email} + {:else if $message.providerType === ProviderTypes.Sms} + {/if} diff --git a/src/routes/console/project-[project]/messaging/message-[message]/smsPreview.svelte b/src/routes/console/project-[project]/messaging/message-[message]/smsPreview.svelte new file mode 100644 index 0000000000..5648c9bf23 --- /dev/null +++ b/src/routes/console/project-[project]/messaging/message-[message]/smsPreview.svelte @@ -0,0 +1,29 @@ + + + +
+ Preview + +
+ + + + + + + + + + + +