mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +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, { useEffect, useState, useCallback } from 'react';
|
||||
import { makeStyles, Button, TextField, Box } from '@material-ui/core';
|
||||
import { makeStyles, Button, Box } from '@material-ui/core';
|
||||
import { useNuiRequest } from 'fivem-nui-react-lib';
|
||||
import { MarketplaceEvents } from '../../../../../../typings/marketplace';
|
||||
import { useSnackbar } from '../../../../ui/hooks/useSnackbar';
|
||||
@@ -9,6 +9,7 @@ import { useHistory, useLocation } from 'react-router-dom';
|
||||
import qs from 'qs';
|
||||
import { useQueryParams } from '../../../../common/hooks/useQueryParams';
|
||||
import { deleteQueryFromLocation } from '../../../../common/utils/deleteQueryFromLocation';
|
||||
import { TextField } from '../../../../ui/components/Input';
|
||||
|
||||
const useStyles = makeStyles((theme) => ({
|
||||
root: {
|
||||
|
||||
Reference in new issue
Block a user