From a119c3777a55037b985574a582287a83b66999fd Mon Sep 17 00:00:00 2001 From: Lucas Oliveira Date: Thu, 30 May 2024 20:15:48 -0300 Subject: [PATCH] Changed empty component to open New Project modal --- .../components/emptyComponent/index.tsx | 41 +++++++++---------- 1 file changed, 20 insertions(+), 21 deletions(-) diff --git a/src/frontend/src/pages/MainPage/components/emptyComponent/index.tsx b/src/frontend/src/pages/MainPage/components/emptyComponent/index.tsx index 0655b6f47..fdcc7291a 100644 --- a/src/frontend/src/pages/MainPage/components/emptyComponent/index.tsx +++ b/src/frontend/src/pages/MainPage/components/emptyComponent/index.tsx @@ -1,5 +1,7 @@ import { useNavigate } from "react-router-dom"; import useFlowsManagerStore from "../../../../stores/flowsManagerStore"; +import NewFlowModal from "../../../../modals/newFlowModal"; +import { useState } from "react"; type EmptyComponentProps = {}; @@ -7,31 +9,28 @@ const EmptyComponent = ({}: EmptyComponentProps) => { const addFlow = useFlowsManagerStore((state) => state.addFlow); const navigate = useNavigate(); + const [openModal, setOpenModal] = useState(false); + return ( <>
-
-
- Flows and components can be created using Langflow. -
-
- New? - - - . - - 🚀 -
+
+ + This folder is empty. New? + + + + + + 🚀