From 868dc533ca0a2ff2ef997ed288559d753c56dce1 Mon Sep 17 00:00:00 2001 From: Baptiste Arnaud Date: Sat, 8 Feb 2025 15:06:16 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=84=20Enhance=20UI=20for=20create=20ty?= =?UTF-8?q?pebot=20and=20duplicate=20typebot=20pages?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/CreateNewTypebotButtons.tsx | 119 ++++++++++-------- .../pages/typebots/[typebotId]/duplicate.tsx | 88 +++++++------ 2 files changed, 113 insertions(+), 94 deletions(-) diff --git a/apps/builder/src/features/templates/components/CreateNewTypebotButtons.tsx b/apps/builder/src/features/templates/components/CreateNewTypebotButtons.tsx index 8dd6e7900..4c3eabe8b 100644 --- a/apps/builder/src/features/templates/components/CreateNewTypebotButtons.tsx +++ b/apps/builder/src/features/templates/components/CreateNewTypebotButtons.tsx @@ -95,61 +95,72 @@ export const CreateNewTypebotButtons = () => { }; return ( - - {t("templates.buttons.heading")} - - - - - } - isLoading={isLoading} - onNewTypebot={handleCreateSubmit} - > - {t("templates.buttons.importFileButton.label")} - + + + {t("templates.buttons.heading")} + + + + + } + isLoading={isLoading} + onNewTypebot={handleCreateSubmit} + > + {t("templates.buttons.importFileButton.label")} + + + { }; return ( - - - Choose a workspace to duplicate {typebot?.name} in: - - ({ - value: workspace.id, - label: ( - - - {workspace.name} - - - ), - }))} - value={selectedWorkspaceId} - onSelect={updateSelectedWorkspaceId} - /> - + + Choose a workspace to duplicate {typebot?.name} in: + + ({ + value: workspace.id, + label: ( + + + {workspace.name} + + + ), + }))} + value={selectedWorkspaceId} + onSelect={updateSelectedWorkspaceId} + /> + + ); };