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