Skip to content
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

Add reset password page component #240

Merged
merged 1 commit into from
Mar 28, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 20 additions & 17 deletions frontend/src/components/auth/ResetPassword.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import React, { useState } from "react";
import { useHistory } from "react-router-dom";
import { gql, useMutation } from "@apollo/client";
import { Text } from "@chakra-ui/react";
import { Box, Button, Image, Input, Text, VStack } from "@chakra-ui/react";
import Sistering_Logo from "../../assets/Sistering_Logo.svg";

import { DONE_RESET_PASSWORD_PAGE } from "../../constants/Routes";

Expand Down Expand Up @@ -30,27 +31,29 @@ const ResetPassword = (): React.ReactElement => {
};

return (
<div style={{ textAlign: "center" }}>
<VStack>
<Image src={Sistering_Logo} alt="Sistering logo" h={32} />
<Text textStyle="display-large">Reset Password</Text>
<div>
<input
<Text w={300} align="center">
Enter the email address associated with your account to reset your
password. You may need to check your spam folder.
</Text>
<Box pt={4}>
<Input
type="email"
value={email}
onChange={(event) => setEmail(event.target.value)}
placeholder="[email protected]"
style={{ border: "1px solid" }}
placeholder="Email"
w={400}
bg="gray.50"
/>
</div>
<div>
<button
type="button"
className="btn btn-primary"
onClick={onResetPasswordClick}
>
Reset Password
</button>
</div>
</div>
</Box>
<Box pt={14}>
<Button px={10} onClick={onResetPasswordClick}>
Send Email
</Button>
</Box>
</VStack>
);
};

Expand Down