-
Notifications
You must be signed in to change notification settings - Fork 0
/
dummt.txt
56 lines (48 loc) · 1.43 KB
/
dummt.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import React from "react";
import Login from "../session_form/login_form_container";
import Logout from "../session_form/signup_form_container";
const ModalShow = ({ handleClose, show }) => {
const showHide = show ? "modal display-block" : "modal display-none";
let logForm = <Login handleClose={handleClose} />;
let logoutForm = <Logout handleClose={handleClose} />;
return (
<div className={showHide}>
<section className="modal-main">
<button className="close-modal" onClick={handleClose}>
X
</button>
{logForm}
</section>
<p>
Don't have an account?{logoutForm}
</p>
</div>
);
};
export default ModalShow;
import React from "react";
import Login from "../session_form/login_form_container";
import Logout from "../session_form/signup_form_container";
const ModalShow = ({ handleClose, show }) => {
const showHide = show ? "modal display-block" : "modal display-none";
let logForm = true;
if (logForm === true) {
logForm = <Login handleClose={handleClose} />;
} else {
logForm = <Logout handleClose={handleClose} />;
}
return (
<div className={showHide}>
<section className="modal-main">
<button className="close-modal" onClick={handleClose}>
X
</button>
{logForm}
<p>
Don't have an account? <button>Signup</button>
</p>
</section>
</div>
);
};
export default ModalShow;