-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix:resolved sign-up distortion[#2133] #86
Changes from 5 commits
6ead9f6
104ac5b
da44afb
996b148
79ee0cb
73e81eb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,7 @@ | |
const verifyString = writable(''); | ||
let verifyLength: string = ''; | ||
let isRegistered = false; | ||
let maxlength = 40; | ||
let redirectRules = { | ||
title: 'Welcome to Sparrow!', | ||
description: 'Bridging Frontend and Backend Development.', | ||
|
@@ -223,6 +224,14 @@ | |
onCodeInput(); | ||
handleVerificationCode(); | ||
} | ||
// This function will reduce the email size if it is too long. | ||
function handleEmail(text:string,maxlength:number){ | ||
if(text.length > maxlength){ | ||
return text.slice(0, maxlength) + "..." | ||
} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. use arrow function here, return type is missing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will fix it |
||
return text | ||
} | ||
$: EmailText = handleEmail(emailText, maxlength); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. variable name should be camel case. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will change it. |
||
|
||
let selectedInput = ''; | ||
const handleFocus = (inputId) => { | ||
|
@@ -271,7 +280,7 @@ | |
<div class="text-center sparrow-fs-14 sparrow-fs-300 mt-5"> | ||
<p class="sparrow-fs-12"> | ||
We have sent a magic code at <br /> | ||
<span class="email-text">{emailText}</span> | ||
<span class="email-text">{EmailText}</span> | ||
</p> | ||
<div> | ||
<div class="d-flex flex-column"> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay