Download netflix-clone-using-react/src/containers/profiles.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 955 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/containers/profiles.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/containers/profiles.js
-
curl -L -o profiles.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/netflix-clone-using-react/src/containers/profiles.js
955 Bytes
| import React from 'react'; | |
| import { Header, Profiles } from '../components'; | |
| import * as ROUTES from '../constants/routes'; | |
| import logo from '../logo.svg'; | |
| export function SelectProfileContainer({ user, setProfile }) { | |
| return ( | |
| <> | |
| <Header bg={false}> | |
| <Header.Frame> | |
| <Header.Logo to={ROUTES.HOME} src={logo} alt="Netflix" /> | |
| </Header.Frame> | |
| </Header> | |
| <Profiles> | |
| <Profiles.Title>Who is Watching ?</Profiles.Title> | |
| <Profiles.List> | |
| <Profiles.User | |
| onClick={() => setProfile({ displayName: user.displayName, photoURL: user.photoURL })} | |
| data-testid="user-profile" | |
| > | |
| <Profiles.Picture src={user.photoURL} /> | |
| <Profiles.Name>{user.displayName}</Profiles.Name> | |
| </Profiles.User> | |
| </Profiles.List> | |
| </Profiles> | |
| </> | |
| ); | |
| } | |