-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
92e8068
commit 554b79d
Showing
9 changed files
with
75 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,29 +42,29 @@ export default function Signup() { | |
style={{ minHeight: "100vh" }}> | ||
<div className="w-100" style={{ maxWidth: "400px" }}> | ||
<Card> | ||
<Card.Body> | ||
<h2 className="text-center mb-4">Sign Up</h2> | ||
{error && <Alert variant="danger">{error}</Alert>} | ||
<Form onSubmit={handleSubmit}> | ||
<Form.Group id="email"> | ||
<Form.Label>Email</Form.Label> | ||
<Form.Control type="email" placeholder="[email protected]" ref={emailRef} required /> | ||
<Card.Body data-testid="signup-card"> | ||
<h2 className="text-center mb-4" data-testid="title">Sign Up</h2> | ||
{error && <Alert variant="danger" data-testid="error-message">{error}</Alert>} | ||
<Form onSubmit={handleSubmit} data-testid="signup-form"> | ||
<Form.Group id="email" data-testid="email"> | ||
<Form.Label data-testid="label">Email</Form.Label> | ||
<Form.Control type="email" placeholder="[email protected]" ref={emailRef} required data-testid="input" /> | ||
</Form.Group> | ||
<Form.Group id="password"> | ||
<Form.Label>Password</Form.Label> | ||
<Form.Control type="password" ref={passwordRef} required /> | ||
<Form.Group id="password" data-testid="password"> | ||
<Form.Label data-testid="label">Password</Form.Label> | ||
<Form.Control type="password" ref={passwordRef} required data-testid="input" /> | ||
</Form.Group> | ||
<Form.Group id="password-confirm"> | ||
<Form.Label>Password Confirmation</Form.Label> | ||
<Form.Control type="password" ref={passwordConfirmRef} required /> | ||
<Form.Group id="password-confirm" data-testid="confirm-password"> | ||
<Form.Label data-testid="label">Password Confirmation</Form.Label> | ||
<Form.Control type="password" ref={passwordConfirmRef} required data-testid="input" /> | ||
</Form.Group> | ||
<Button disabled={loading} className="w-100" type="submit" style={{ background: "#0080c8", borderColor: "#0080c8" }}> | ||
<Button disabled={loading} className="w-100" type="submit" style={{ background: "#0080c8", borderColor: "#0080c8" }} data-testid="signup-btn"> | ||
Sign Up | ||
</Button> | ||
</Form> | ||
</Card.Body> | ||
</Card> | ||
<div className="w-100 text-center mt-2"> | ||
<div className="w-100 text-center mt-2" data-testid="login"> | ||
Already have an account? <Link to="/login" style={{ color: "#0080c8" }}>Log In</Link> | ||
</div> | ||
</div> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters