Skip to content

Commit

Permalink
Remove file attach button in chatbot message box (#1400)
Browse files Browse the repository at this point in the history
  • Loading branch information
TamiTakamiya authored Nov 15, 2024
1 parent 14a7cc2 commit 06f0c74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ export const AnsibleChatbot: React.FunctionComponent = () => {
</MessageBox>
</ChatbotContent>
<ChatbotFooter>
<MessageBar onSendMessage={handleSend} />
<MessageBar onSendMessage={handleSend} hasAttachButton={false} />
<ChatbotFootnote {...footnoteProps} />
</ChatbotFooter>
</FileDropZone>
Expand Down
2 changes: 2 additions & 0 deletions ansible_ai_connect_chatbot/src/App.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ describe("App tests", () => {
it("App renders", () => {
renderApp();
expect(screen.getByText("Hello, Ansible User")).toBeInTheDocument();
const attachButton = screen.queryByLabelText("Attach button");
expect(attachButton).toBeNull();
});

it("Basic chatbot interaction", async () => {
Expand Down

0 comments on commit 06f0c74

Please sign in to comment.