Skip to content
Open
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
27 changes: 26 additions & 1 deletion src/common_components/auth/resetPassword/ResetPassword.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const ResetPasswordForm: React.FC = () => {
register,
handleSubmit,
formState: { errors },
getValues,
} = useForm<{ email: string }>();
const [isSent, setIsSent] = useState(false);
const onSubmit = (data: { email: string }) => {
Expand Down Expand Up @@ -62,7 +63,31 @@ const ResetPasswordForm: React.FC = () => {
)}>
送信
</button>
{isSent && <p className={css({ textAlign: "center" })}>メールを送信しました。受信トレイをご確認ください</p>}
{isSent && (
<div className={css({ display: "flex", flexDir: "column", gap: 2 })}>
<p className={css({ textAlign: "center" })}>メールを送信しました。受信トレイをご確認ください</p>
<a
href={`https://outlook.office.com/mail/${getValues("email")}/inbox/`}
target="_blank"
rel="noreferrer noopener"
className={cx(
buttonStyle({ visual: "outline", color: "purple" }),
css({
alignSelf: "center",
display: "flex!",
alignItems: "flex-end",
gap: 2,
_disabled: {
opacity: 0.5,
cursor: "default",
"&:hover": { opacity: 0.5 },
},
}),
)}>
Outlook を開く(外部)
</a>
</div>
)}
</form>
);
};
Expand Down