Skip to content

Commit

Permalink
fix(phone/ui): don't use noop defined outside src
Browse files Browse the repository at this point in the history
  • Loading branch information
TasoOneAsia committed Dec 2, 2021
1 parent 2245a91 commit 95577c1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions phone/src/ui/components/Input.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import React from 'react';
import MUITextField, { TextFieldProps } from '@mui/material/TextField';
import MUIInputBase, { InputBaseProps } from '@mui/material/InputBase';
import { PhoneEvents } from '../../../../typings/phone';
import { PhoneEvents } from '@typings/phone';
import { fetchNui } from '../../utils/fetchNui';
import { isEnvBrowser } from '../../utils/misc';
import { noop } from '../../../../resources/utils/misc';

const toggleKeys = (keepGameFocus: boolean) =>
fetchNui(PhoneEvents.TOGGLE_KEYS, {
keepGameFocus,
}).catch((e) => (isEnvBrowser() ? noop : console.error(e)));
}).catch((e) => (isEnvBrowser() ? () => {} : console.error(e)));

export const TextField: React.FC<TextFieldProps> = (props) => {
return (
Expand Down

0 comments on commit 95577c1

Please sign in to comment.