From b58e7bbc5461ab65f2c7680592a00eeaa9a6ba5b Mon Sep 17 00:00:00 2001 From: Daishan Peng Date: Thu, 15 Aug 2024 11:14:54 -0700 Subject: [PATCH] Feat: Add finish button when creating or editing assistant Signed-off-by: Daishan Peng --- components/edit/configure.tsx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/components/edit/configure.tsx b/components/edit/configure.tsx index e945d04d..9949fbaa 100644 --- a/components/edit/configure.tsx +++ b/components/edit/configure.tsx @@ -15,9 +15,11 @@ import { Tooltip, Accordion, AccordionItem, + Button, } from '@nextui-org/react'; import { PiToolboxBold } from 'react-icons/pi'; import AssistantNotFound from '@/components/assistant-not-found'; +import { useRouter } from 'next/navigation'; interface ConfigureProps { collapsed?: boolean; @@ -25,6 +27,7 @@ interface ConfigureProps { } const Configure: React.FC = ({ collapsed }) => { + const router = useRouter(); const { root, setRoot, @@ -178,6 +181,16 @@ const Configure: React.FC = ({ collapsed }) => { +
+ +
); };