Remove client phoneConfig event (#73)

* Remove client phoneConfig event

* Remove unused debug

* Remove unused import

* Remove unused import

* Remove duplicated functions | fix useEffect dependency | etc

* Fix warnings

* Update phone/src/apps/twitter/components/TwitterApp.tsx

Co-authored-by: Taso <[email protected]>

Co-authored-by: Taso <[email protected]>
This commit is contained in:
J Francisco RaderandTaso authored and GitHub committed 2021-02-10 12:04:28 -05:00
1 parent fdfd4133e2
commit 81f5e27064
12 files changed
+61 -81

No files matched your search

@@ -3,7 +3,7 @@ import { useTranslation } from 'react-i18next';
import { makeStyles } from '@material-ui/core/styles';
import { TextField } from '@material-ui/core';
const useStyles = makeStyles((theme) => ({
const useStyles = makeStyles({
textField: {
flex: '1 1 100%',
padding: '10px 15px',
@@ -12,7 +12,7 @@ const useStyles = makeStyles((theme) => ({
textFieldInput: {
fontSize: '22px',
},
}));
});
export const ImagePrompt = ({ visible, value, handleChange }) => {
const textFieldRef = useRef(null);
@@ -23,7 +23,10 @@ export const ImagePrompt = ({ visible, value, handleChange }) => {
textFieldRef.current && textFieldRef.current.focus();
}, [visible]);
const handleImageChange = useCallback(e => handleChange(e.target.value), []);
const handleImageChange = useCallback(
(e) => handleChange(e.target.value),
[handleChange]
);
if (!visible) return null;
return (