Skip to content

Commit

Permalink
cleint: modify shake pos
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham-Lal committed May 14, 2024
1 parent ba66c5a commit fe2826b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/components/card/claim-username.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,21 @@ const ClaimUsername = () => {
setTimeout(() => setIsSubmitted(false), 500);

if (username.trim()) {

}
}

return (
<form id='claim-username' onSubmit={handleUsernameSubmit}>
<p>Get Started</p>
<div className={`username-input ${isSubmitted && !username.trim() ? "shake" : ""}`}>
<div className='username-input'>
<span className='domain'>debatehive.com/</span>
<input
placeholder='johndoe'
value={username}
onChange={e => setUsername(e.target.value)}
onKeyPress={handleKeyPress}
className={isSubmitted && !username.trim() ? "shake" : ""}
style={{ border: isSubmitted && !username.trim() ? "2px dotted white" : "" }}
/>
</div>
Expand Down

0 comments on commit fe2826b

Please sign in to comment.