Implement new LoginModal in HeaderMenu

This commit is contained in:
Justin Edmund 2022-02-28 16:40:48 -08:00
parent 1c7e602464
commit f3d2ff9662
4 changed files with 4 additions and 18 deletions

View file

@ -19,10 +19,6 @@ interface Props {
}
const HeaderMenu = (props: Props) => {
const { open: signupOpen, openModal: openSignupModal, closeModal: closeSignupModal } = useSignupModal()
const { open: loginOpen, openModal: openLoginModal, closeModal: closeLoginModal } = useLoginModal()
const { open: aboutOpen, openModal: openAboutModal, closeModal: closeAboutModal } = useAboutModal()
function authItems() {
return (
<nav>
@ -74,18 +70,9 @@ const HeaderMenu = (props: Props) => {
</li>
</div>
<div className="MenuGroup">
<li className="MenuItem" onClick={openLoginModal}>
<span>Log in</span>
</li>
{loginOpen ? (
<LoginModal
close={closeLoginModal}
/>
) : null}
<LoginModal />
<SignupModal />
</div>
</ul>
)
}

View file

@ -12,6 +12,7 @@
&.btn-disabled {
background: $grey-90;
color: $grey-70;
cursor: not-allowed;
}
&:not(.btn-disabled) {

View file

@ -220,8 +220,6 @@ const SignupModal = (props: Props) => {
</Dialog.Close>
</div>
<form className="form" onSubmit={register}>
<Fieldset
fieldName="username"