blob: 8459ef5fa0f4903be0a871e50ed4e2d9c0298811 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
import React from 'react'
import { Button } from 'reactstrap'
import { useAuth } from '../../auth'
function Login({ visible, className }) {
const { loginWithRedirect } = useAuth()
if (!visible) {
return <span />
}
return (
<Button color="primary" onClick={() => loginWithRedirect()} className={className}>
<span aria-hidden className="fa fa-sign-in" /> Sign In
</Button>
)
}
export default Login
|