mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-05 06:28:51 +00:00
fix(merge): fixed conflicts
This commit is contained in:
1 parent
52a32b443d
commit
c8882a618b
1 file changed
-31
@@ -5,7 +5,6 @@ import { AppTitle } from '../../ui/components/AppTitle';
|
|||||||
import { AppContent } from '../../ui/components/AppContent';
|
import { AppContent } from '../../ui/components/AppContent';
|
||||||
import { useCall } from '../hooks/useCall';
|
import { useCall } from '../hooks/useCall';
|
||||||
import CallIcon from '@material-ui/icons/Call';
|
import CallIcon from '@material-ui/icons/Call';
|
||||||
<<<<<<< HEAD
|
|
||||||
import CallEndIcon from '@material-ui/icons/CallEnd';
|
import CallEndIcon from '@material-ui/icons/CallEnd';
|
||||||
import useStyles from './modal.styles';
|
import useStyles from './modal.styles';
|
||||||
import { useModal } from '../hooks/useModal';
|
import { useModal } from '../hooks/useModal';
|
||||||
@@ -14,60 +13,30 @@ import Nui from '../../os/nui-events/utils/Nui';
|
|||||||
export const CallModal = () => {
|
export const CallModal = () => {
|
||||||
const { call } = useCall();
|
const { call } = useCall();
|
||||||
const { setModal } = useModal()
|
const { setModal } = useModal()
|
||||||
=======
|
|
||||||
import PhoneDisabledIcon from '@material-ui/icons/PhoneDisabled';
|
|
||||||
import CallEndIcon from '@material-ui/icons/CallEnd';
|
|
||||||
import useStyles from './modal.styles';
|
|
||||||
import { useModal } from '../hooks/useModal';
|
|
||||||
|
|
||||||
export const CallModal = () => {
|
|
||||||
const { call, setCall } = useCall();
|
|
||||||
const { setModal } = useModal()
|
|
||||||
const [accepted, setAccepted] = useState(false)
|
|
||||||
>>>>>>> 28774d24d89468bd6804b82c6beb0e40a3cd4abf
|
|
||||||
|
|
||||||
const classes = useStyles()
|
const classes = useStyles()
|
||||||
|
|
||||||
const handleAcceptCall = () => {
|
const handleAcceptCall = () => {
|
||||||
<<<<<<< HEAD
|
|
||||||
Nui.send('phone:acceptCall', {
|
Nui.send('phone:acceptCall', {
|
||||||
phoneNumber: call.phone_number
|
phoneNumber: call.phone_number
|
||||||
})
|
})
|
||||||
=======
|
|
||||||
setAccepted(true)
|
|
||||||
>>>>>>> 28774d24d89468bd6804b82c6beb0e40a3cd4abf
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleRejectCall = () => {
|
const handleRejectCall = () => {
|
||||||
setModal(false)
|
setModal(false)
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
setCall(null)
|
|
||||||
>>>>>>> 28774d24d89468bd6804b82c6beb0e40a3cd4abf
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const handleEndCall = () => {
|
const handleEndCall = () => {
|
||||||
setModal(false)
|
setModal(false)
|
||||||
<<<<<<< HEAD
|
|
||||||
=======
|
|
||||||
setCall(null)
|
|
||||||
>>>>>>> 28774d24d89468bd6804b82c6beb0e40a3cd4abf
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<AppWrapper>
|
<AppWrapper>
|
||||||
<AppContent>
|
<AppContent>
|
||||||
<<<<<<< HEAD
|
|
||||||
<h1 style={{ textAlign: 'center' }}>{call.transmitter ? call.target : call.caller}</h1>
|
<h1 style={{ textAlign: 'center' }}>{call.transmitter ? call.target : call.caller}</h1>
|
||||||
|
|
||||||
<div className={classes.actions}>
|
<div className={classes.actions}>
|
||||||
{!call.accepted ? (
|
{!call.accepted ? (
|
||||||
=======
|
|
||||||
<h1 style={{ textAlign: 'center' }}>{call.target}</h1>
|
|
||||||
|
|
||||||
<div className={classes.actions}>
|
|
||||||
{!accepted ? (
|
|
||||||
>>>>>>> 28774d24d89468bd6804b82c6beb0e40a3cd4abf
|
|
||||||
<>
|
<>
|
||||||
<Fab
|
<Fab
|
||||||
onClick={handleRejectCall}
|
onClick={handleRejectCall}
|
||||||
|
|||||||
Reference in new issue
Block a user