From c733c3be750aea3448f2b4cfdd33fef2084a6516 Mon Sep 17 00:00:00 2001 From: Misode Date: Sat, 17 May 2025 20:08:40 +0200 Subject: [PATCH] Fix minor dialog issues --- src/app/components/previews/DialogPreview.tsx | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/app/components/previews/DialogPreview.tsx b/src/app/components/previews/DialogPreview.tsx index 4bff9e21..3f6aeb90 100644 --- a/src/app/components/previews/DialogPreview.tsx +++ b/src/app/components/previews/DialogPreview.tsx @@ -91,7 +91,11 @@ function DialogContent({ dialog }: { dialog: any }) { if (Array.isArray(dialog.dialogs)) { dialogs = dialog.dialogs } else if (typeof dialog.dialogs === 'string') { - dialogs = [dialog.dialogs] + if (dialog.dialogs.startsWith('#')) { + dialogs = ['dialog_1', 'dialog_2', 'dialog_3'] + } else { + dialogs = [dialog.dialogs] + } } return {dialogs.map((d: any) => { @@ -121,6 +125,15 @@ function DialogContent({ dialog }: { dialog: any }) { } + if (type === 'server_links') { + const links = ['Server link 1', 'Server link 2', 'Server link 3'] + return + {links.map((text: string) => { + return