mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 22:16:40 +00:00
Prettified Code!
This commit is contained in:
1 parent
827f98bba1
commit
fe4c46e8ee
2 files changed
+30
-30
No files matched your search
@@ -29,23 +29,23 @@ export const DialerInput = () => {
|
||||
|
||||
const handleCall = (number: string) => {
|
||||
Nui.send('phone:beginCall', {
|
||||
number
|
||||
})
|
||||
}
|
||||
number,
|
||||
});
|
||||
};
|
||||
|
||||
return (
|
||||
<DialInputCtx.Consumer>
|
||||
{({ inputVal, add }) => (
|
||||
<Box component={Paper} className={classes.root}>
|
||||
<InputBase
|
||||
placeholder='Enter a number'
|
||||
className={classes.input}
|
||||
value={inputVal}
|
||||
/>
|
||||
<IconButton className={classes.iconBtn}>
|
||||
<PhoneIcon onClick={() => handleCall(inputVal)} />
|
||||
</IconButton>
|
||||
</Box>
|
||||
<InputBase
|
||||
placeholder='Enter a number'
|
||||
className={classes.input}
|
||||
value={inputVal}
|
||||
/>
|
||||
<IconButton className={classes.iconBtn}>
|
||||
<PhoneIcon onClick={() => handleCall(inputVal)} />
|
||||
</IconButton>
|
||||
</Box>
|
||||
)}
|
||||
</DialInputCtx.Consumer>
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user