mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
fix conflicts
This commit is contained in:
commit
8472309436
2 files changed
+6
-7
No files matched your search
@@ -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 ? (
|
||||||
<>
|
<>
|
||||||
|
|||||||
@@ -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> :
|
<span>{(duration.m >= 10) ? duration.m : '0'+duration.m}</span> :
|
||||||
<span>{(duration.s >= 10) ? duration.s : '0'+duration.s}</span>
|
<span>{(duration.s >= 10) ? duration.s : '0'+duration.s}</span>
|
||||||
</div>
|
</div>
|
||||||
)
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default CallTimer
|
export default CallTimer;
|
||||||
Reference in new issue
Block a user