Skip to content

Commit

Permalink
fix: buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
louisjoecodes committed Dec 5, 2024
1 parent dbc45ac commit c1f5c01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ export default function Page() {
</div>
)}

{conversation.status === "connected" && (
{conversation.status === "connected" && !isEndingCall && (
<div
className={cn(
"flex flex-col gap-3 mt-4",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ export function SantaCard({
variant="default"
className="flex-1 px-4 py-2 rounded-full border-gray-500 border-2 bg-gray-900/90 hover:bg-gray-950/90 text-white backdrop-blur-[16px] shadow-2xl"
onClick={async () => {
setIsOpen(false);
await conversation.endSession();
window.location.reload();
}}
Expand All @@ -142,15 +143,21 @@ export function SantaCard({
<Button
variant="default"
className="flex-1 px-4 py-2 rounded-full border-blue-500 border-2 bg-blue-900/90 hover:bg-blue-950/90 text-white backdrop-blur-[16px] shadow-2xl"
onClick={() => endCall(false)}
onClick={() => {
setIsOpen(false);
endCall(false);
}}
>
Save Card without Video
<VideoOffIcon className="w-4 h-4 ml-2" />
</Button>
<Button
variant="default"
className="flex-1 px-4 py-2 rounded-full border-emerald-500 border-2 bg-emerald-900/90 hover:bg-emerald-950/90 text-white backdrop-blur-[16px] shadow-2xl"
onClick={() => endCall()}
onClick={() => {
setIsOpen(false);
endCall();
}}
>
Save Card with Video
<VideoIcon className="w-4 h-4 ml-2" />
Expand Down

0 comments on commit c1f5c01

Please sign in to comment.