File size: 1,437 Bytes
f5071ca |
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 |
import React from 'react'
import Modal from 'react-modal'
import { NetflixLogo } from 'assets/images/'
import ProfileCard from 'components/UI/ProfileCard/ProfileCard'
import './ProfileModal.css'
import {
Weird,
Profile,
Smile,
Normal
} from 'assets/images/'
if (process.env.NODE_ENV !== 'test') {
Modal.setAppElement('#root');
}
const profileModal = props => {
const { modalOpen, profileClickHandler } = props
return (
<Modal
className="ProfileModal"
isOpen={modalOpen}
contentLabel="Modal is open"
shouldCloseOnEsc={false}
>
<img src={NetflixLogo} alt="Logo" />
<div className="ProfileDiv">
<h1>Who's watching?</h1>
<div className="horizontalComp">
<ProfileCard profileImage={Profile} username="Pushpa" onClick={profileClickHandler} />
<ProfileCard profileImage={Weird} username="Shammy" onClick={profileClickHandler} />
<ProfileCard profileImage={Smile} username="PQ" onClick={profileClickHandler} />
<ProfileCard profileImage={Normal} username="Subhanga" onClick={profileClickHandler} />
</div>
<button className={"ProfileButton"}>
MANAGE PROFILES
</button>
</div>
</Modal>
)
}
export default profileModal |