This file contains hidden or 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
export const emojis = | |
'๐,๐,๐,๐,๐,๐ ,๐,๐คฃ,๐,๐,๐,๐,๐,๐,๐,๐,๐,๐,๐,๐,๐,๐,๐คช,๐คจ,๐ง,๐ค,๐,๐คฉ,๐,๐,๐,๐,๐,๐,๐,๐ฃ,๐,๐ซ,๐ฉ,๐ข,๐ญ,๐ค,๐ ,๐ก,๐คฌ,๐คฏ,๐ณ,๐ฑ,๐จ,๐ฐ,๐ฅ,๐,๐ค,๐ค,๐คญ,๐คซ,๐คฅ,๐ถ,๐,๐,๐ฌ,๐,๐ฏ,๐ฆ,๐ง,๐ฎ,๐ฒ,๐ด,๐คค,๐ช,๐ต,๐ค,๐คข,๐คฎ,๐คง,๐ท,๐ค,๐ค,๐ค,๐ค ,๐,๐ฟ,๐น,๐บ,๐คก,๐ฉ,๐ป,๐,๐ฝ,๐พ,๐ค,๐,๐บ,๐ธ,๐น,๐ป,๐ผ,๐ฝ,๐,๐ฟ,๐พ,๐คฒ,๐,๐,๐,๐ค,๐,๐,๐,โ,๐ค,๐ค,๐ค,๐ค,๐,๐,๐,๐,๐,โ,๐ค,๐,๐,๐,๐ค,๐ช,๐,๐'; | |
export const emojisArray = emojis.split(','); | |
export const emojiRandom = () => | |
emojisArray[Math.floor(Math.random() * emojisArray.length)]; |
This file contains hidden or 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
export const print = (v) => { | |
const el = document.createElement('h3'); | |
el.innerText = '๐ต ' + v; | |
document.body.appendChild(el); | |
} |
This file contains hidden or 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
import { useForm } from 'react-hook-form'; | |
import { useRouter } from 'next/router'; | |
import { useAuth } from 'hooks/useAuth'; | |
const ResetPasswordForm: React.FC = () => { | |
const { register, errors, handleSubmit } = useForm(); | |
const auth = useAuth(); | |
const router = useRouter(); | |
const onSubmit = (data: { email: string }) => { | |
auth.sendPasswordResetEmail(data.email); | |
router.push('/login'); |