From 19c6207801822c146320c335a938a60f143b4ad8 Mon Sep 17 00:00:00 2001 From: mikaalnaik <25439925+mikaalnaik@users.noreply.github.com> Date: Thu, 28 Nov 2024 20:13:49 +0000 Subject: [PATCH] feat: Audio input button transition (DSN-2581) (#375) **Fixes or implements VF-XXX** ### Brief description. What is this change? ### Implementation details. How do you make this change? ### Setup information ### Deployment Notes ### Related PRs - https://github.com/voiceflow/XXXXXXXXX/pull/123 ### Checklist - [ ] Breaking changes have been communicated, including: - New required environment variables - Renaming of interfaces (API routes, request/response interface, etc) - [ ] New environment variables have [been deployed](https://www.notion.so/voiceflow/Add-Environment-Variables-be1b0136479f45f1adece7995a7adbfb) - [ ] Appropriate tests have been written - Bug fixes are accompanied by an updated or new test - New features are accompanied by a new test --- .../MessageInput/AudioInputButton.tsx | 4 +++- .../MessageInput/MessageInput.css.ts | 13 +++++++++++++ .../chat/src/components/MessageInput/index.tsx | 18 +++++++++--------- 3 files changed, 25 insertions(+), 10 deletions(-) diff --git a/packages/chat/src/components/MessageInput/AudioInputButton.tsx b/packages/chat/src/components/MessageInput/AudioInputButton.tsx index ba4fd7de8f..e73ff2f117 100644 --- a/packages/chat/src/components/MessageInput/AudioInputButton.tsx +++ b/packages/chat/src/components/MessageInput/AudioInputButton.tsx @@ -11,6 +11,7 @@ interface AudioInputButtonProps { listening?: boolean; processing?: boolean; initializing?: boolean; + showButton?: boolean; } export const AudioInputButton: React.FC = ({ @@ -19,13 +20,14 @@ export const AudioInputButton: React.FC = ({ listening, processing, initializing, + showButton, }) => { return (