This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/website/src/components/DocPageAuthentication.js
slumbering 1bd1be5cb1 docs: 🐛 stop api call when user is granted
Signed-off-by: slumbering <slumbering.pierrot@gmail.com>
2021-06-18 11:33:48 +02:00

13 lines
559 B
JavaScript

import React from "react";
import { GithubLoginButton } from 'react-social-login-buttons';
import style from './DocPageAuthentication.module.css'
export default function DocAuthentication() {
return (
<div className={style.container}>
<h1 className={style.h1}>Welcome on Dagger documentation</h1>
<p>Please Sign In to Github to get access to the doc</p>
<GithubLoginButton className={style.btn__github} onClick={() => window.location.href = process.env.REACT_APP_GITHUB_AUTHORIZE_URI} />
</div>
)
}