mirror of
https://github.com/jambonz/chrome-extension-dialer.git
synced 2025-12-19 04:47:45 +00:00
fix
This commit is contained in:
@@ -77,13 +77,15 @@ export const OutgoingCall = ({
|
||||
<Button w="full" colorScheme={DEFAULT_COLOR_SCHEME} onClick={hangup}>
|
||||
Hang up
|
||||
</Button>
|
||||
<Button
|
||||
w="full"
|
||||
colorScheme={DEFAULT_COLOR_SCHEME}
|
||||
onClick={callOnHold}
|
||||
>
|
||||
{callHold ? "Unhold " : "Place call on hold"}
|
||||
</Button>
|
||||
{isSipClientAnswered(callStatus) && (
|
||||
<Button
|
||||
w="full"
|
||||
colorScheme={DEFAULT_COLOR_SCHEME}
|
||||
onClick={callOnHold}
|
||||
>
|
||||
{callHold ? "Unhold " : "Place call on hold"}
|
||||
</Button>
|
||||
)}
|
||||
</VStack>
|
||||
</VStack>
|
||||
);
|
||||
|
||||
@@ -212,14 +212,16 @@ export const Phone = ({
|
||||
<strong>Status:</strong> {status}
|
||||
</Text>
|
||||
<Spacer />
|
||||
<Button
|
||||
size="sm"
|
||||
onClick={handleGoOffline}
|
||||
colorScheme={DEFAULT_COLOR_SCHEME}
|
||||
ml={5}
|
||||
>
|
||||
{goOffline ? "Go online" : "Go offline"}
|
||||
</Button>
|
||||
{isSipClientIdle(callStatus) && (
|
||||
<Button
|
||||
size="sm"
|
||||
onClick={handleGoOffline}
|
||||
colorScheme={DEFAULT_COLOR_SCHEME}
|
||||
ml={5}
|
||||
>
|
||||
{goOffline ? "Go online" : "Go offline"}
|
||||
</Button>
|
||||
)}
|
||||
</Flex>
|
||||
</VStack>
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user