fix conflicts

This commit is contained in:
Christopher committed 2021-02-01 20:15:20 +01:00
commit 8472309436
2 files changed
+6 -7

No files matched your search

+3 -4
View File
@@ -31,7 +31,7 @@ export const CallModal = () => {
}; };
const handleEndCall = () => { const handleEndCall = () => {
setModal(false) setModal(false);
Nui.send('phone:endCall', { Nui.send('phone:endCall', {
transmitterNumber: call.transmitter, transmitterNumber: call.transmitter,
}); });
@@ -41,9 +41,8 @@ export const CallModal = () => {
return ( return (
<AppWrapper> <AppWrapper>
<AppContent> <AppContent>
<h1 style={{ textAlign: 'center' }}>{call.receiver}</h1> <h1 style={{ textAlign: 'center' }}>{call.receiver}</h1>
<CallTimer isAccepted={call.accepted}/> <CallTimer isAccepted={call.accepted} />
<div className={classes.actions}> <div className={classes.actions}>
<Fab <Fab
onClick={handleEndCall} onClick={handleEndCall}
@@ -62,7 +61,7 @@ export const CallModal = () => {
<AppWrapper> <AppWrapper>
<AppContent> <AppContent>
<h1 style={{ textAlign: 'center' }}>{call.transmitter}</h1> <h1 style={{ textAlign: 'center' }}>{call.transmitter}</h1>
<CallTimer isAccepted={call.accepted}/> <CallTimer isAccepted={call.accepted} />
<div className={classes.actions}> <div className={classes.actions}>
{!call.accepted ? ( {!call.accepted ? (
<> <>
+3 -3
View File
@@ -31,7 +31,7 @@ function CallTimer({ isAccepted }) {
} }
if (updatedMs === 100) { if (updatedMs === 100) {
updatedS++; updatedS++;
updatedMs = 0 updatedMs = 0;
} }
updatedMs++; updatedMs++;
return setDuration({ ms: updatedMs, s: updatedS, m: updatedM, h: updatedH }) return setDuration({ ms: updatedMs, s: updatedS, m: updatedM, h: updatedH })
@@ -48,7 +48,7 @@ function CallTimer({ isAccepted }) {
<span>{(duration.m >= 10) ? duration.m : '0'+duration.m}</span>&nbsp;:&nbsp; <span>{(duration.m >= 10) ? duration.m : '0'+duration.m}</span>&nbsp;:&nbsp;
<span>{(duration.s >= 10) ? duration.s : '0'+duration.s}</span>&nbsp; <span>{(duration.s >= 10) ? duration.s : '0'+duration.s}</span>&nbsp;
</div> </div>
) );
} }
export default CallTimer export default CallTimer;