🐛 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:
Lucas Oliveira 2023-07-03 22:16:17 -03:00
commit d4b0ce9851
2 changed files with 5 additions and 5 deletions

View file

@ -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" : "")
}
>

View file

@ -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..."}