🐛 fix(codeAreaComponent): fix type name in function parameter to match imported type
🐛 fix(textAreaComponent): fix class name in className to match CSS class name convention
This commit is contained in:
parent
a9cd09dc5e
commit
d4b0ce9851
2 changed files with 5 additions and 5 deletions
|
|
@ -13,7 +13,7 @@ export default function CodeAreaComponent({
|
|||
editNode = false,
|
||||
nodeClass,
|
||||
setNodeClass,
|
||||
}: CodeAreaComponentType) {
|
||||
}: TextAreaComponentType) {
|
||||
const [myValue, setMyValue] = useState(
|
||||
typeof value == "string" ? value : JSON.stringify(value)
|
||||
);
|
||||
|
|
@ -52,7 +52,7 @@ export default function CodeAreaComponent({
|
|||
}}
|
||||
className={
|
||||
editNode
|
||||
? "input-edit-node input-dialog"
|
||||
? "input-edit-node input-dialog "
|
||||
: "input-primary input-dialog " + (disabled ? "input-disable" : "")
|
||||
}
|
||||
>
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ export default function TextAreaComponent({
|
|||
className={
|
||||
editNode
|
||||
? "w-full items-center"
|
||||
: "w-full flex items-center gap-3"
|
||||
: "w-full flex items-center"
|
||||
}
|
||||
>
|
||||
<span
|
||||
|
|
@ -52,8 +52,8 @@ export default function TextAreaComponent({
|
|||
}}
|
||||
className={
|
||||
editNode
|
||||
? "input-edit-node " + " input-dialog "
|
||||
: " input_dialog " + "px-3 py-2" + (disabled ? " input-disable " : "")
|
||||
? "input-edit-node input-dialog "
|
||||
: "input-primary input-dialog " + (disabled ? "input-disable" : "")
|
||||
}
|
||||
>
|
||||
{myValue !== "" ? myValue : "Type something..."}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue