From ee762c3c68dab4531b99df66f78af76dbb12b42f Mon Sep 17 00:00:00 2001 From: utin-francis-peter Date: Sun, 9 Jun 2024 13:47:51 +0100 Subject: [PATCH] chore: modified handleQuestion params for more clarity --- frontend/src/Hero.tsx | 10 ++++++++-- frontend/src/conversation/Conversation.tsx | 19 +++++++++++++++---- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/frontend/src/Hero.tsx b/frontend/src/Hero.tsx index 69bf23a..f138ec4 100644 --- a/frontend/src/Hero.tsx +++ b/frontend/src/Hero.tsx @@ -4,7 +4,13 @@ import { useTranslation } from 'react-i18next'; export default function Hero({ handleQuestion, }: { - handleQuestion: (question: string) => void; + handleQuestion: ({ + question, + isRetry, + }: { + question: string; + isRetry?: boolean; + }) => void; }) { const { t } = useTranslation(); const demos = t('demo', { returnObjects: true }) as Array<{ @@ -30,7 +36,7 @@ export default function Hero({ demo.query && (