2024-08-27 10:09:41 -07:00
|
|
|
import Button from "react-bootstrap/Button"
|
|
|
|
import Form from "react-bootstrap/Form"
|
|
|
|
import Modal from "react-bootstrap/Modal"
|
2024-08-27 09:39:28 -07:00
|
|
|
|
2024-08-27 10:09:41 -07:00
|
|
|
import React from "react"
|
2024-08-27 09:39:28 -07:00
|
|
|
|
2024-08-27 10:09:41 -07:00
|
|
|
type AuthProps = {
|
|
|
|
doLogin: () => void;
|
|
|
|
}
|
|
|
|
|
|
|
|
const AuthModal: React.FC<AuthProps> = ({ doLogin }) => {
|
|
|
|
return (
|
|
|
|
<div
|
|
|
|
className="modal show"
|
|
|
|
style={{ display: "block", position: "initial" }}
|
|
|
|
>
|
|
|
|
<Modal.Dialog>
|
|
|
|
<Modal.Header closeButton>
|
|
|
|
<Modal.Title>Modal title</Modal.Title>
|
|
|
|
</Modal.Header>
|
|
|
|
|
|
|
|
<Modal.Body>
|
|
|
|
<Form>
|
|
|
|
<Form.Group className="mb-3" controlId="formBasicEmail">
|
|
|
|
<Form.Label>Email address</Form.Label>
|
|
|
|
<Form.Control type="email" placeholder="Enter email" />
|
|
|
|
<Form.Text className="text-muted">
|
|
|
|
We'll never share your email with anyone else.
|
|
|
|
</Form.Text>
|
|
|
|
</Form.Group>
|
2024-08-27 09:39:28 -07:00
|
|
|
|
2024-08-27 10:09:41 -07:00
|
|
|
<Form.Group className="mb-3" controlId="formBasicPassword">
|
|
|
|
<Form.Label>Password</Form.Label>
|
|
|
|
<Form.Control type="password" placeholder="Password" />
|
|
|
|
</Form.Group>
|
|
|
|
</Form>
|
|
|
|
</Modal.Body>
|
2024-08-27 09:39:28 -07:00
|
|
|
|
2024-08-27 10:09:41 -07:00
|
|
|
<Modal.Footer>
|
|
|
|
<Button variant="primary" onClick={doLogin}>Login</Button>
|
|
|
|
</Modal.Footer>
|
|
|
|
</Modal.Dialog>
|
|
|
|
</div>
|
|
|
|
);
|
2024-08-27 09:39:28 -07:00
|
|
|
}
|
|
|
|
export default AuthModal;
|