mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Disable walking when an inputfield is focused (#234)
* feat(phone) Disable walking when an input is focused * refactor(phone) renamed var & replaced copy paste code Instead of copying the code it now uses a custom hook * refactor(phone/input): removed useMemo from hook * style(phone/input): changed indentation to spaces & added de-structured import
This commit is contained in:
1 parent
0e1d7f40b5
commit
870aeda3c3
16 files changed
+88
-13
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import React, { useContext } from 'react';
|
||||
import { Box, IconButton, InputBase, Paper } from '@material-ui/core';
|
||||
import { Box, IconButton, Paper } from '@material-ui/core';
|
||||
import { makeStyles, Theme } from '@material-ui/core/styles';
|
||||
import PhoneIcon from '@material-ui/icons/Phone';
|
||||
import PersonAddIcon from '@material-ui/icons/PersonAdd';
|
||||
@@ -8,6 +8,7 @@ import { useNuiRequest } from 'fivem-nui-react-lib';
|
||||
import { useHistory } from 'react-router-dom';
|
||||
import { CallEvents } from '../../../../../typings/call';
|
||||
import { useTranslation } from 'react-i18next';
|
||||
import { InputBase } from '../../../ui/components/Input';
|
||||
|
||||
const useStyles = makeStyles((theme: Theme) => ({
|
||||
root: {
|
||||
|
||||
Reference in new issue
Block a user