mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
working emoji integration and workflow
This commit is contained in:
1 parent
2fc78df59b
commit
e577b37d6b
10 files changed
+209
-85
No files matched your search
@@ -34,21 +34,6 @@ export const TwitterApp = () => {
|
||||
const openModal = useCallback(() => setModalVisible(true), []);
|
||||
const hideModal = useCallback(() => setModalVisible(false), []);
|
||||
|
||||
useEffect(() => {
|
||||
const listener = window.addEventListener(
|
||||
"keydown",
|
||||
(e) => {
|
||||
const isEscapeKey = e.key == "Escape" || e.key == "Esc";
|
||||
if (isEscapeKey) {
|
||||
e.preventDefault();
|
||||
hideModal();
|
||||
}
|
||||
},
|
||||
true
|
||||
);
|
||||
return () => window.removeEventListener("keydown", listener);
|
||||
}, []);
|
||||
|
||||
return (
|
||||
<AppWrapper>
|
||||
<AppTitle app={twitter} className={classes.root} />
|
||||
|
||||
Reference in new issue
Block a user