Skip to content

Commit

Permalink
chore: remove delay of button showing up
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwisecodes committed Nov 15, 2024
1 parent fb95c76 commit 30572fa
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,28 @@ function TextMessagePart({
markdown={part.value.split("Otherwise, tap")[0] ?? part.value}
shouldTransformToButtons={true}
/>
{((ailaStreamingStatus === "Idle" && isLastMessage) ||
(ailaStreamingStatus === "Moderating" && isLastMessage)) && (
<InLineButton
text={
part.value.includes("complete the lesson plan") ||
part.value.includes("final step")
? "Proceed to the final step"
: "Proceed to the next step"
}
onClick={() => handleContinue()}
/>
)}
</div>
);
}
if (part.value.includes("Tap **Continue")) {
return (
<div className="flex flex-col gap-6">
<MemoizedReactMarkdownWithStyles
markdown={part.value.split("Tap **Continue")[0] ?? part.value}
shouldTransformToButtons={true}
/>
{ailaStreamingStatus === "Idle" && isLastMessage && (
<InLineButton
text={
Expand Down

0 comments on commit 30572fa

Please sign in to comment.