Download NetflixClone/src/components/Modals/ProfileModal/ProfileModal.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/components/Modals/ProfileModal/ProfileModal.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/components/Modals/ProfileModal/ProfileModal.js
-
curl -L -o ProfileModal.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/f5071caa249115f3b590492f1c8eb471e02aae4b/NetflixClone/src/components/Modals/ProfileModal/ProfileModal.js
1.44 kB
| 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 |