Skip to content

Commit

Permalink
feat: login action
Browse files Browse the repository at this point in the history
  • Loading branch information
JayJay1024 committed Jan 18, 2022
1 parent e71f2ed commit 7bd11ca
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/component/ClaimAirdrop/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ type Props = {

const ClaimAirdrop: React.FC<Props> = ({ className }) => {
const [visibleLoadingModal, setVisibleLoadingModal] = useState(false);
const [visibleComfirmModal, setVisibleComfirmModal] = useState(true);
const [visibleComfirmModal, setVisibleComfirmModal] = useState(false);

const handleClickLoginWithGithub = (e: Event) => {
e.preventDefault();
setVisibleComfirmModal(true);
}
// const handleClickLoginWithGithub = (e: Event) => {
// e.preventDefault();
// setVisibleComfirmModal(true);
// }

return (
<>
<div className={clsx(className)}>
<button className={clsx(styles.btnLoginWithGihub)} onClick={handleClickLoginWithGithub}>
<a className={clsx(styles.btnLoginWithGihub)} href="/api/connect/github">
<span>Log in with Github</span>
</button>
</a>
</div>
<ComfirmModal
visible={visibleComfirmModal}
Expand Down
4 changes: 4 additions & 0 deletions src/component/ClaimAirdrop/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
background: transparent;
border-radius: 10px;
border: 2px solid rgba(228, 26, 112, 0.9);

&:hover {
text-decoration: none;
}

>span {
font-weight: bold;
Expand Down

0 comments on commit 7bd11ca

Please sign in to comment.