From bed53f1b81ae716c69534805d66325bae8b8a829 Mon Sep 17 00:00:00 2001 From: Peer Richelsen Date: Mon, 14 Oct 2024 10:50:55 +0200 Subject: [PATCH] list layout form ultiple callers --- .../components/dialog/InstantCallDialog.tsx | 89 +++++++++++++++---- 1 file changed, 74 insertions(+), 15 deletions(-) diff --git a/apps/web/components/dialog/InstantCallDialog.tsx b/apps/web/components/dialog/InstantCallDialog.tsx index 6fa448a048fafe..2ee5b78d1ff9e1 100644 --- a/apps/web/components/dialog/InstantCallDialog.tsx +++ b/apps/web/components/dialog/InstantCallDialog.tsx @@ -11,27 +11,55 @@ interface IInstantCallDialog { export const InstantCallDialog = (props: IInstantCallDialog) => { const { t } = useLocale(); + const multipleCallers = true; // just for testing purposes + const { isOpenDialog, setIsOpenDialog } = props; return ( <> - -
-

Peer Richelsen is calling for a "NAME OF EVENT TYPE" meeting.

-

You have n minutes and n seconds to accept.

-
- -
- - -
-
+ {multipleCallers ? ( + <> + +
    + {comments.map((comment) => ( +
  • +
    +

    {comment.name}

    +

    {comment.content}

    +
    +
    + + +
    +
  • + ))} +
+ + ) : ( + <> + +
+

Peer Richelsen is calling for a "NAME OF EVENT TYPE" meeting.

+

You have n minutes and n seconds to accept.

+
+ +
+ + +
+
+ + )}
{/* TODO: Add programmatic way of triggering the audio without controls */}