From 821bb4ba91f59244075fba8671f8bdf36cd54787 Mon Sep 17 00:00:00 2001 From: Jonas Schell Date: Mon, 16 Sep 2024 19:18:08 +0200 Subject: [PATCH] Move to Herzogs design --- frontend/app/page.tsx | 12 +++---- frontend/components/NoAgentNotification.tsx | 38 +++++++++++++++++++-- 2 files changed, 40 insertions(+), 10 deletions(-) diff --git a/frontend/app/page.tsx b/frontend/app/page.tsx index 1af9141..e5981f1 100644 --- a/frontend/app/page.tsx +++ b/frontend/app/page.tsx @@ -68,16 +68,14 @@ function SimpleVoiceAssistant() { return (
-

{state}

+

{state}

-

No agent

- No agent has joined the room yet. Please ensure you've followed - the setup instructions and started your agent on your machine.{" "} - - Learn more - + No agent joined this session. Follow the guide to setup your agent.

+ + View guide +
); diff --git a/frontend/components/NoAgentNotification.tsx b/frontend/components/NoAgentNotification.tsx index f94e9f7..d8399a5 100644 --- a/frontend/components/NoAgentNotification.tsx +++ b/frontend/components/NoAgentNotification.tsx @@ -30,13 +30,45 @@ export function NoAgentNotification(props: NoAgentNotificationProps) { }; }, [props.state]); - React.useEffect(() => {}, [props.state]); - return ( <> {showNotification ? ( -
+
+
+ {/* Warning Icon */} + + + +
{props.children} +
) : null}