Download spectrum/src/components/loginButtonSet/facebook.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/loginButtonSet/facebook.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/spectrum/src/components/loginButtonSet/facebook.js
-
curl -L -o facebook.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/spectrum/src/components/loginButtonSet/facebook.js
580 Bytes
| // @flow | |
| import * as React from 'react'; | |
| import type { ButtonProps } from './'; | |
| import { FacebookButton, Label, A } from './style'; | |
| import Icon from 'src/components/icon'; | |
| export const FacebookSigninButton = (props: ButtonProps) => { | |
| const { href, preferred, showAfter, onClickHandler } = props; | |
| return ( | |
| <A onClick={() => onClickHandler && onClickHandler('facebook')} href={href}> | |
| <FacebookButton showAfter={showAfter} preferred={preferred}> | |
| <Icon glyph={'facebook'} /> | |
| <Label>Log in with Facebook</Label> | |
| </FacebookButton> | |
| </A> | |
| ); | |
| }; | |