Skip to content

Commit

Permalink
Merge pull request #75 from tomridder/personal/tomridder/issue_fix_#74
Browse files Browse the repository at this point in the history
修复了点击获取验证码按钮也会触发注册按钮的逻辑的bug
添加 gitpod 支持
  • Loading branch information
AprilNEA authored Jun 2, 2023
2 parents d9b877d + 91cfae5 commit 61cde1a
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

tasks:
- init: pnpm install && pnpm run build
command: pnpm run dev


7 changes: 4 additions & 3 deletions apps/chat/src/app/register/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@ export default function Register() {
}
};

const handleSendVerification = async () => {
setSubmitting(true);
const handleSendVerification = async (event: React.MouseEvent) => {
event.preventDefault();

if (!email) {
showToast("请输入邮箱");
Expand Down Expand Up @@ -169,8 +169,9 @@ export default function Register() {
onChange={(e) => setVerificationCode(e.target.value)}
/>
<button
type="button"
className={styles["send-verification-button"]}
onClick={handleSendVerification}
onClick={(event) => handleSendVerification(event)}
disabled={submitting}
>
{isSending ? "Already Send to Email" : "Get Code"}
Expand Down

1 comment on commit 61cde1a

@vercel
Copy link

@vercel vercel bot commented on 61cde1a Jun 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

lmo-dash-demo – ./apps/dash

lmo-dash-demo-lmobest.vercel.app
lmo-dash-demo-git-main-lmobest.vercel.app
chat-gpt-admin-web.vercel.app

Please sign in to comment.