diff --git a/web-app/src/components/ui/Button/ActionButton.jsx b/web-app/src/components/ui/Button/ActionButton.jsx index a14b1fe..334f9e8 100644 --- a/web-app/src/components/ui/Button/ActionButton.jsx +++ b/web-app/src/components/ui/Button/ActionButton.jsx @@ -3,7 +3,7 @@ import './ActionButton.css'; export default function ActionButton({ onClick, children, - type = 'add', // 'add' or 'delete' + type = 'add', // 'add' or 'delete' or 'send' ...props }) { // Define color and icon based on type @@ -39,6 +39,12 @@ export default function ActionButton({ ), }, + submit: { + color: '#3949AB', + svg: ( + + ), + }, }; const { color, svg } = config[type] || config.add; @@ -50,7 +56,7 @@ export default function ActionButton({ style={{ '--btn-color': color }} {...props} > - { type === 'add' ? 'New Chat' : 'Delete Chat'} + {children} {svg} ); diff --git a/web-app/src/components/ui/chat/chat-header.jsx b/web-app/src/components/ui/chat/chat-header.jsx index 2952cc6..d4a3564 100644 --- a/web-app/src/components/ui/chat/chat-header.jsx +++ b/web-app/src/components/ui/chat/chat-header.jsx @@ -31,8 +31,8 @@ export default function ChatHeader({ title = "AI Assistant" }) { Ask anything — AI is listening

- - + + diff --git a/web-app/src/components/ui/chat/message-input.jsx b/web-app/src/components/ui/chat/message-input.jsx index 2ca272e..3dd4f84 100644 --- a/web-app/src/components/ui/chat/message-input.jsx +++ b/web-app/src/components/ui/chat/message-input.jsx @@ -1,5 +1,5 @@ import React, { useState } from "react"; - +import ActionButton from "../Button/ActionButton"; export default function MessageInput({ onSend }) { const [text, setText] = useState(""); @@ -19,12 +19,8 @@ export default function MessageInput({ onSend }) { placeholder="Type a message..." className="flex-1 rounded-md bg-slate-800 border border-slate-700 px-3 py-2 text-white focus:outline-none focus:ring-2 focus:ring-indigo-500" /> - + + );