sign in button opens create account modal
parent
d90509c12d
commit
174feea1b5
|
@ -12,7 +12,7 @@ import { useAppDispatch, useAppSelector } from '../store';
|
||||||
import { selectOpenAIApiKey } from '../store/api-keys';
|
import { selectOpenAIApiKey } from '../store/api-keys';
|
||||||
import { setTab } from '../store/settings-ui';
|
import { setTab } from '../store/settings-ui';
|
||||||
import { selectSidebarOpen, toggleSidebar } from '../store/sidebar';
|
import { selectSidebarOpen, toggleSidebar } from '../store/sidebar';
|
||||||
import { openLoginModal } from '../store/ui';
|
import { openSignupModal } from '../store/ui';
|
||||||
|
|
||||||
const HeaderContainer = styled.div`
|
const HeaderContainer = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -176,7 +176,7 @@ export default function Header(props: HeaderProps) {
|
||||||
if (process.env.REACT_APP_AUTH_PROVIDER !== 'local') {
|
if (process.env.REACT_APP_AUTH_PROVIDER !== 'local') {
|
||||||
backend.current?.signIn();
|
backend.current?.signIn();
|
||||||
} else {
|
} else {
|
||||||
dispatch(openLoginModal());
|
dispatch(openSignupModal());
|
||||||
}
|
}
|
||||||
}}>
|
}}>
|
||||||
<FormattedMessage defaultMessage="Sign in <h>to sync</h>"
|
<FormattedMessage defaultMessage="Sign in <h>to sync</h>"
|
||||||
|
|
Loading…
Reference in New Issue