mirror of
https://github.com/jambonz/chrome-extension-dialer.git
synced 2026-10-04 02:04:28 +00:00
wip
This commit is contained in:
+15
-21
@@ -409,7 +409,7 @@ export const Phone = ({
|
|||||||
mt={5}
|
mt={5}
|
||||||
className={isOnline() ? "" : "blurred"}
|
className={isOnline() ? "" : "blurred"}
|
||||||
>
|
>
|
||||||
{isAdvanceMode && (
|
{isAdvanceMode && isSipClientIdle(callStatus) && (
|
||||||
<HStack spacing={2} align="start" w="full">
|
<HStack spacing={2} align="start" w="full">
|
||||||
<Tooltip label="Call to user">
|
<Tooltip label="Call to user">
|
||||||
<IconButtonMenu
|
<IconButtonMenu
|
||||||
@@ -497,26 +497,20 @@ export const Phone = ({
|
|||||||
</HStack>
|
</HStack>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{isSipClientIdle(callStatus) ? (
|
<Input
|
||||||
<Input
|
value={inputNumber}
|
||||||
value={inputNumber}
|
bg="grey.500"
|
||||||
bg="grey.500"
|
fontWeight="bold"
|
||||||
fontWeight="bold"
|
fontSize="24px"
|
||||||
fontSize="24px"
|
onChange={(e) => setInputNumber(e.target.value)}
|
||||||
onChange={(e) => setInputNumber(e.target.value)}
|
textAlign="center"
|
||||||
textAlign="center"
|
isReadOnly={!isSipClientIdle(callStatus)}
|
||||||
/>
|
/>
|
||||||
) : (
|
|
||||||
<VStack>
|
{!isSipClientIdle(callStatus) && seconds >= 0 && (
|
||||||
<Text fontSize="22px" fontWeight="bold">
|
<Text fontSize="15px">
|
||||||
{formatPhoneNumber(inputNumber)}
|
{new Date(seconds * 1000).toISOString().substr(11, 8)}
|
||||||
</Text>
|
</Text>
|
||||||
{seconds >= 0 && (
|
|
||||||
<Text fontSize="15px">
|
|
||||||
{new Date(seconds * 1000).toISOString().substr(11, 8)}
|
|
||||||
</Text>
|
|
||||||
)}
|
|
||||||
</VStack>
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<DialPad handleDigitPress={handleDialPadClick} />
|
<DialPad handleDigitPress={handleDialPadClick} />
|
||||||
|
|||||||
Reference in New Issue
Block a user