formatting

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-07-10 13:58:48 -03:00
commit c9fd97f1f6
9 changed files with 130 additions and 119 deletions

View file

@ -28,7 +28,6 @@ export default function CodeAreaComponent({
setMyValue(typeof value == "string" ? value : JSON.stringify(value)); setMyValue(typeof value == "string" ? value : JSON.stringify(value));
}, [value]); }, [value]);
return ( return (
<div className={disabled ? "pointer-events-none w-full " : " w-full"}> <div className={disabled ? "pointer-events-none w-full " : " w-full"}>
<div className="flex w-full items-center"> <div className="flex w-full items-center">
@ -50,7 +49,7 @@ export default function CodeAreaComponent({
editNode editNode
? "input-edit-node input-dialog" ? "input-edit-node input-dialog"
: (disabled ? " input-disable " : "") + : (disabled ? " input-disable " : "") +
" input-primary input-dialog" " input-dialog input-primary"
} }
> >
{myValue !== "" ? myValue : "Type something..."} {myValue !== "" ? myValue : "Type something..."}

View file

@ -99,7 +99,9 @@ export default function InputFileComponent({
className={ className={
editNode editNode
? "input-edit-node input-dialog text-muted-foreground" ? "input-edit-node input-dialog text-muted-foreground"
: (disabled ? "input-disable input-primary input-dialog" : "input-primary input-dialog text-muted-foreground") : disabled
? "input-disable input-dialog input-primary"
: "input-dialog input-primary text-muted-foreground"
} }
> >
{myValue !== "" ? myValue : "No file"} {myValue !== "" ? myValue : "No file"}

View file

@ -70,7 +70,7 @@ export default function PromptAreaComponent({
editNode editNode
? "input-edit-node input-dialog" ? "input-edit-node input-dialog"
: (disabled ? " input-disable " : "") + : (disabled ? " input-disable " : "") +
" input-primary input-dialog" " input-dialog input-primary"
} }
> >
{myValue !== "" ? myValue : "Type your prompt here"} {myValue !== "" ? myValue : "Type your prompt here"}

View file

@ -41,7 +41,6 @@ export default function TextAreaComponent({
setMyValue(e.target.value); setMyValue(e.target.value);
onChange(e.target.value); onChange(e.target.value);
}} }}
/> />
<button <button

View file

@ -374,7 +374,9 @@ export default function ChatModal({
<ChatMessage <ChatMessage
lockChat={lockChat} lockChat={lockChat}
chat={c} chat={c}
lastMessage={chatHistory.length - 1 === i ? true : false} lastMessage={
chatHistory.length - 1 === i ? true : false
}
key={i} key={i}
/> />
)) ))

View file

@ -34,13 +34,21 @@ export default function ChatMessage({
{!chat.isSend ? ( {!chat.isSend ? (
<div className="form-modal-chat-image"> <div className="form-modal-chat-image">
<div className="form-modal-chat-bot-icon "> <div className="form-modal-chat-bot-icon ">
<img src={Robot} className="form-modal-chat-icon-img" alt="robot_image"/> <img
src={Robot}
className="form-modal-chat-icon-img"
alt="robot_image"
/>
</div> </div>
</div> </div>
) : ( ) : (
<div className="form-modal-chat-image"> <div className="form-modal-chat-image">
<div className="form-modal-chat-user-icon "> <div className="form-modal-chat-user-icon ">
<img src={MaleTechnology} className="form-modal-chat-icon-img" alt="male_technology"/> <img
src={MaleTechnology}
className="form-modal-chat-icon-img"
alt="male_technology"
/>
</div> </div>
</div> </div>
)} )}

View file

@ -517,7 +517,9 @@ export default function FormModal({
<ChatMessage <ChatMessage
lockChat={lockChat} lockChat={lockChat}
chat={c} chat={c}
lastMessage={chatHistory.length - 1 === i ? true : false} lastMessage={
chatHistory.length - 1 === i ? true : false
}
key={i} key={i}
/> />
)) ))

View file

@ -28,7 +28,6 @@ export type FlowStyleType = {
flow_id: string; flow_id: string;
}; };
export type TweaksType = Array< export type TweaksType = Array<
{ {
[key: string]: { [key: string]: {