mirror of
https://github.com/myfatemi04/wheelshare-frontend.git
synced 2025-04-21 11:20:17 -04:00
make sign in with ion link a button
This commit is contained in:
parent
e389ebd1ab
commit
d12b289176
|
@ -1,4 +1,5 @@
|
|||
import { ION_AUTHORIZATION_ENDPOINT } from '../api';
|
||||
import Button from '@material-ui/core/Button';
|
||||
|
||||
export default function Home() {
|
||||
return (
|
||||
|
@ -11,7 +12,11 @@ export default function Home() {
|
|||
>
|
||||
<h1>Home</h1>
|
||||
<div style={{ display: 'flex', flexDirection: 'row' }}>
|
||||
<a href={ION_AUTHORIZATION_ENDPOINT}>Log In with Ion</a>
|
||||
<Button
|
||||
onClick={() => (window.location.href = ION_AUTHORIZATION_ENDPOINT)}
|
||||
>
|
||||
Sign In with Ion
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue
Block a user