From 174feea1b562bce018d6593a11caa292416df2f9 Mon Sep 17 00:00:00 2001 From: Cogent Apps Date: Fri, 17 Mar 2023 18:23:52 +0000 Subject: [PATCH] sign in button opens create account modal --- app/src/components/header.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/components/header.tsx b/app/src/components/header.tsx index d43a7e5..cacde2e 100644 --- a/app/src/components/header.tsx +++ b/app/src/components/header.tsx @@ -12,7 +12,7 @@ import { useAppDispatch, useAppSelector } from '../store'; import { selectOpenAIApiKey } from '../store/api-keys'; import { setTab } from '../store/settings-ui'; import { selectSidebarOpen, toggleSidebar } from '../store/sidebar'; -import { openLoginModal } from '../store/ui'; +import { openSignupModal } from '../store/ui'; const HeaderContainer = styled.div` display: flex; @@ -176,7 +176,7 @@ export default function Header(props: HeaderProps) { if (process.env.REACT_APP_AUTH_PROVIDER !== 'local') { backend.current?.signIn(); } else { - dispatch(openLoginModal()); + dispatch(openSignupModal()); } }}>