-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #805 from bounswe/FRONTEND-803
feat(frontend): complete guest view
- Loading branch information
Showing
12 changed files
with
409 additions
and
298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { useState } from "react"; | ||
import { Modal, ModalContent, ModalBody } from "@nextui-org/react"; | ||
import Login from "./login"; | ||
import Register from "./register"; | ||
|
||
export default function GuestAuthModal({ isOpen, setIsOpen }) { | ||
const [isRegister, setIsRegister] = useState(false); | ||
|
||
return ( | ||
<Modal | ||
isOpen={isOpen} | ||
onOpenChange={setIsOpen} | ||
placement="top-center" | ||
className="max-w-[360px] flex flex-col items-center" | ||
backdrop="blur" | ||
> | ||
<ModalContent className="pb-6 gap-3"> | ||
<ModalBody className="text-center text-default-500"> | ||
{isRegister ? ( | ||
<Register setIsRegister={setIsRegister} isGuestView /> | ||
) : ( | ||
<Login setIsRegister={setIsRegister} isGuestView /> | ||
)} | ||
</ModalBody> | ||
</ModalContent> | ||
</Modal> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.