refactor: add typescript support to project

This commit is contained in:
HD
2022-06-21 15:08:35 +08:00
parent 88ec2b742a
commit bd799ebea8
259 changed files with 1042 additions and 458 deletions
+23
View File
@@ -0,0 +1,23 @@
import Button from "../../common/component/styled/Button";
import { FC, MouseEvent } from "react";
interface Props {
email: string;
reset?: (e: MouseEvent<HTMLButtonElement>) => void;
}
const SentTip: FC<Props> = ({ email, reset }) => {
return (
<div className="tips">
<h2 className="title">Check your email</h2>
<span className="desc">
Weve sent you a magic link to {email}. Click on the link to continue.
</span>
<Button onClick={reset} className="main flex">
Use a different email
</Button>
</div>
);
};
export default SentTip;