Browse Source

Continue to troubleshoot the emoji picker

pull/2032/head
Gabe Kangas 4 years ago
parent
commit
8c7c11cb72
No known key found for this signature in database
GPG Key ID: 9A56337728BC81EA
  1. 9
      web/components/chat/ChatTextField/EmojiPicker.tsx

9
web/components/chat/ChatTextField/EmojiPicker.tsx

@ -1,5 +1,4 @@
import data from '@emoji-mart/data'; import data from '@emoji-mart/data';
import { Picker } from 'emoji-mart';
import React, { useRef, useEffect } from 'react'; import React, { useRef, useEffect } from 'react';
export default function EmojiPicker(props) { export default function EmojiPicker(props) {
@ -19,10 +18,12 @@ export default function EmojiPicker(props) {
}, },
]; ];
// TODO: Fix the emoji picker from throwing errors.
// useEffect(() => { // useEffect(() => {
// // eslint-disable-next-line no-new // import('emoji-mart').then(EmojiMart => {
// new Picker({ ...props, data, custom, ref }); // new EmojiMart.Picker({ ...props, data, ref });
// });
// }, []); // }, []);
return <div>emoji picker goes here</div>; return <div ref={ref} />;
} }

Loading…
Cancel
Save