Prettified Code!

This commit is contained in:
itschip authored and GitHub Action committed 2021-01-31 15:00:22 +00:00
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>
);