formatting

This commit is contained in:
Cristhian Zanforlin Lousa 2023-07-20 18:58:29 -03:00
commit 207ed3b0f0
8 changed files with 40 additions and 62 deletions

View file

@ -36,9 +36,7 @@ export default function FloatComponent({
max={max}
value={value ?? ""}
disabled={disabled}
className={
(editNode ? "input-edit-node" : "")
}
className={editNode ? "input-edit-node" : ""}
placeholder={
editNode ? "Number 0 to 1" : "Type a number from zero to one"
}

View file

@ -28,8 +28,7 @@ export default function InputListComponent({
}, [disabled, onChange]);
return (
<div className="flex flex-col gap-3"
>
<div className="flex flex-col gap-3">
{inputList.map((i, idx) => {
return (
<div key={idx} className="flex w-full gap-3">
@ -37,11 +36,7 @@ export default function InputListComponent({
disabled={disabled}
type="text"
value={i}
className={
editNode
? "input-edit-node"
: ""
}
className={editNode ? "input-edit-node" : ""}
placeholder="Type something..."
onChange={(e) => {
setInputList((old) => {

View file

@ -18,8 +18,7 @@ export default function IntComponent({
}, [disabled, onChange]);
return (
<div className="w-full"
>
<div className="w-full">
<Input
onKeyDown={(event) => {
if (
@ -48,11 +47,7 @@ export default function IntComponent({
}
}}
value={value ?? ""}
className={
editNode
? "input-edit-node"
: ""
}
className={editNode ? "input-edit-node" : ""}
disabled={disabled}
placeholder={editNode ? "Integer number" : "Type an integer number"}
onChange={(e) => {

View file

@ -23,11 +23,7 @@ export default function TextAreaComponent({
<Input
value={value}
disabled={disabled}
className={
(editNode
? "input-edit-node"
: "")
}
className={editNode ? "input-edit-node" : ""}
placeholder={"Type something..."}
onChange={(e) => {
onChange(e.target.value);

View file

@ -9,10 +9,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(
return (
<input
type={type}
className={cn(
"input-primary nopan nodrag noundo nocopy",
className
)}
className={cn("nopan nodrag noundo nocopy input-primary", className)}
ref={ref}
{...props}
/>

View file

@ -8,10 +8,7 @@ const Textarea = React.forwardRef<HTMLTextAreaElement, TextareaProps>(
({ className, ...props }, ref) => {
return (
<textarea
className={cn(
"textarea-primary nopan nodrag noundo nocopy",
className
)}
className={cn("nopan nodrag noundo nocopy textarea-primary", className)}
ref={ref}
{...props}
/>

View file

@ -1,7 +1,7 @@
import { useEffect } from "react";
import IconComponent from "../../../components/genericIconComponent";
import { classNames } from "../../../utils/utils";
import { Textarea } from "../../../components/ui/textarea";
import { classNames } from "../../../utils/utils";
export default function ChatInput({
lockChat,

View file

@ -1,6 +1,7 @@
import { useContext, useState } from "react";
import ShadTooltip from "../../../../components/ShadTooltipComponent";
import IconComponent from "../../../../components/genericIconComponent";
import { Input } from "../../../../components/ui/input";
import { Separator } from "../../../../components/ui/separator";
import { alertContext } from "../../../../contexts/alertContext";
import { TabsContext } from "../../../../contexts/tabsContext";
@ -15,7 +16,6 @@ import {
} from "../../../../utils/styleUtils";
import { classNames } from "../../../../utils/utils";
import DisclosureComponent from "../DisclosureComponent";
import { Input } from "../../../../components/ui/input";
export default function ExtraSidebar() {
const { data } = useContext(typesContext);