From dbcfdd9eda2cc4c76e7c6d3a918c19fd92be8601 Mon Sep 17 00:00:00 2001 From: itschip Date: Tue, 26 Jan 2021 20:43:20 +0000 Subject: [PATCH] Prettified Code! --- phone/src/modal/components/CallModal.tsx | 39 ++++++++++------------ phone/src/modal/components/modal.styles.ts | 9 +++-- 2 files changed, 21 insertions(+), 27 deletions(-) diff --git a/phone/src/modal/components/CallModal.tsx b/phone/src/modal/components/CallModal.tsx index 0eb31dd..a46e16a 100644 --- a/phone/src/modal/components/CallModal.tsx +++ b/phone/src/modal/components/CallModal.tsx @@ -17,7 +17,7 @@ export const CallModal = () => { const classes = useStyles(); const handleAcceptCall = () => { - console.log("NUI CALL: ", call.phone_number) + console.log('NUI CALL: ', call.phone_number); Nui.send('phone:acceptCall', { phoneNumber: call.target, }); @@ -26,45 +26,40 @@ export const CallModal = () => { const handleRejectCall = () => { setModal(false); Nui.send('phone:rejectCall', { - phoneNumber: call.target - }) + phoneNumber: call.target, + }); }; const handleEndCall = () => { setModal(false); Nui.send('phone:endCall', { - phoneNumber: call.target - }) + phoneNumber: call.target, + }); }; if (call.transmitter) { return ( -

- {call.target} -

-
- - - -
- +

{call.target}

+
+ + + +
- ) + ); } return ( -

- {call.caller} -

+

{call.caller}

{!call.accepted ? ( diff --git a/phone/src/modal/components/modal.styles.ts b/phone/src/modal/components/modal.styles.ts index 82abd5c..a8482dc 100644 --- a/phone/src/modal/components/modal.styles.ts +++ b/phone/src/modal/components/modal.styles.ts @@ -8,12 +8,11 @@ const useStyles = makeStyles((theme: Theme) => ({ display: 'flex', alignContent: 'center', justifyContent: 'center', - bottom: '10%' + bottom: '10%', }, actionButton: { margin: 20, - } -})) + }, +})); - -export default useStyles; \ No newline at end of file +export default useStyles;