react-icons/io#IoLogoGithub JavaScript Examples
The following examples show how to use
react-icons/io#IoLogoGithub.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: login.js From nextjs-todo-list with MIT License | 5 votes |
SignIn = ({ onGithubSignIn, onGoogleSignIn, loading }) => {
const classes = useStyles();
return (
<Container className={classes.container} component="main" maxWidth="xs">
{loading ? <h1>logging in..</h1> : <h1>Login to create tasks</h1>}
{loading ? (
<div className={classes.loaderContainer}>
<CircularProgress color="primary" />
</div>
) : (
<>
<img width="90%" src="/onboarding.svg" alt="team" />
<Button
variant="contained"
color="primary"
className={[classes.button, classes.githubButton]}
onClick={onGithubSignIn}
disabled={loading}
>
<div className={classes.iconContainer}>
<IoLogoGithub fill="#fff" width="24" height="24" />
<span>Continue with Github</span>
</div>
</Button>
<Button
variant="contained"
color="secondary"
className={[classes.button, classes.googleButton]}
onClick={onGoogleSignIn}
disabled={loading}
>
<div className={classes.iconContainer}>
<IoLogoGoogle fill="#fff" width="24" height="24" />
<span>Continue with Google</span>
</div>
</Button>
</>
)}
</Container>
);
}