Skip to content

Instantly share code, notes, and snippets.

View arthu's full-sized avatar
💭
I may be slow to respond.

arthur arthu

💭
I may be slow to respond.
View GitHub Profile
@arthu
arthu / emoji.js
Created July 8, 2021 15:38 — forked from codediodeio/emoji.js
Just a string filled with Emojis
export const emojis =
'😀,😃,😄,😁,😆,😅,😂,🤣,😊,🙂,🙃,😉,😌,😍,😘,😗,😙,😚,😋,😛,😝,😜,🤪,🤨,🧐,🤓,😎,🤩,😏,😒,😞,😔,😟,😕,🙁,😣,😖,😫,😩,😢,😭,😤,😠,😡,🤬,🤯,😳,😱,😨,😰,😥,😓,🤗,🤔,🤭,🤫,🤥,😶,😐,😑,😬,🙄,😯,😦,😧,😮,😲,😴,🤤,😪,😵,🤐,🤢,🤮,🤧,😷,🤒,🤕,🤑,🤠,😈,👿,👹,👺,🤡,💩,👻,💀,👽,👾,🤖,🎃,😺,😸,😹,😻,😼,😽,🙀,😿,😾,🤲,👐,🙌,👏,🤝,👍,👎,👊,✊,🤛,🤞,🤟,🤘,👌,👉,👈,👆,👇,✋,🤚,🖐,🖖,👋,🤙,💪,🖕,🙏';
export const emojisArray = emojis.split(',');
export const emojiRandom = () =>
emojisArray[Math.floor(Math.random() * emojisArray.length)];
@arthu
arthu / print.js
Created July 8, 2021 15:36 — forked from codediodeio/print.js
print
export const print = (v) => {
const el = document.createElement('h3');
el.innerText = '🔵 ' + v;
document.body.appendChild(el);
}
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');