+
{!props.isMobileWidth && (
setMessage(message)}
sendImage={(image) => setImages((prevImages) => [...prevImages, image])}
sendDisabled={processingMessage}
@@ -327,43 +345,74 @@ function ChatBodyData(props: ChatBodyDataProps) {
)}
- {shuffledOptions.map((suggestion, index) => (
-
{
- if (props.isLoggedIn) {
- fillArea(
- suggestion.link,
- suggestion.type,
- suggestion.description,
- );
- } else {
- event.preventDefault();
- event.stopPropagation();
- setShowLoginPrompt(true);
- }
- }}
- >
-
+ {stepTwoSuggestionOptions.length == 0 &&
+ stepOneSuggestionOptions.map((suggestion, index) => (
+
{
+ if (props.isLoggedIn) {
+ clickStepOneSuggestion(suggestion);
+ } else {
+ event.preventDefault();
+ event.stopPropagation();
+ setShowLoginPrompt(true);
+ }
+ }}
+ >
+
+
+ ))}
+
+ {stepTwoSuggestionOptions.length == 0 &&
+ stepOneSuggestionOptions.length < stepOneSuggestions.length && (
+
- ))}
-
-
-
+ )}
{props.isMobileWidth && (
<>
diff --git a/src/interface/web/tailwind.config.ts b/src/interface/web/tailwind.config.ts
index 904d0fa3..07bd0754 100644
--- a/src/interface/web/tailwind.config.ts
+++ b/src/interface/web/tailwind.config.ts
@@ -133,11 +133,16 @@ const config = {
opacity: "0",
},
},
+ fadeInUp: {
+ "0%": { opacity: "0", transform: "translateY(20px)" },
+ "100%": { opacity: "1", transform: "translateY(0)" },
+ },
},
animation: {
"accordion-down": "accordion-down 0.2s ease-out",
"accordion-up": "accordion-up 0.2s ease-out",
"caret-blink": "caret-blink 1.25s ease-out infinite",
+ "fade-in-up": "fadeInUp 0.3s ease-out",
},
},
},