diff --git a/src/interface/web/app/components/chatHistory/chatHistory.tsx b/src/interface/web/app/components/chatHistory/chatHistory.tsx index d8052a04..78093cec 100644 --- a/src/interface/web/app/components/chatHistory/chatHistory.tsx +++ b/src/interface/web/app/components/chatHistory/chatHistory.tsx @@ -247,7 +247,7 @@ export default function ChatHistory(props: ChatHistoryProps) {
- {fetchingData && } + {fetchingData && }
{(data && data.chat) && data.chat.map((chatMessage, index) => ( } -
-
- } - description={constructAgentPersona()} - /> + {data && +
+
+ } + description={constructAgentPersona()} + /> +
-
+ }
diff --git a/src/interface/web/app/components/loading/loading.tsx b/src/interface/web/app/components/loading/loading.tsx index 650011d7..55ada004 100644 --- a/src/interface/web/app/components/loading/loading.tsx +++ b/src/interface/web/app/components/loading/loading.tsx @@ -1,22 +1,23 @@ import { CircleNotch } from '@phosphor-icons/react'; -export default function Loading() { +interface LoadingProps { + className?: string; + message?: string; +} + +export default function Loading(props: LoadingProps) { return ( // NOTE: We can display usage tips here for casual learning moments. -
-
Loading
+
+
{props.message || "Loading" }
); } -interface InlineLoadingProps { - className?: string; -} - -export function InlineLoading(props: InlineLoadingProps) { +export function InlineLoading(props: LoadingProps) { return ( ) }