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

View file

@ -99,7 +99,9 @@ export default function InputFileComponent({
className={
editNode
? "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"}

View file

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

View file

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

View file

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

View file

@ -34,13 +34,21 @@ export default function ChatMessage({
{!chat.isSend ? (
<div className="form-modal-chat-image">
<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 className="form-modal-chat-image">
<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>
)}

View file

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

View file

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