formatting
This commit is contained in:
parent
02fc2004e1
commit
c9fd97f1f6
9 changed files with 130 additions and 119 deletions
|
|
@ -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..."}
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
|
|
|
|||
|
|
@ -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"}
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ export default function TextAreaComponent({
|
|||
setMyValue(e.target.value);
|
||||
onChange(e.target.value);
|
||||
}}
|
||||
|
||||
/>
|
||||
|
||||
<button
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
/>
|
||||
))
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
/>
|
||||
))
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@ export type FlowStyleType = {
|
|||
flow_id: string;
|
||||
};
|
||||
|
||||
|
||||
export type TweaksType = Array<
|
||||
{
|
||||
[key: string]: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue