refactor[CustomNodes]: Add types to functions that didnt have it

This commit is contained in:
Igor Carvalho 2023-07-20 17:12:50 -03:00
commit 84b2fb8aae
4 changed files with 2 additions and 4 deletions

View file

@ -44,7 +44,7 @@ export default function ParameterComponent({
required = false, required = false,
optionalHandle = null, optionalHandle = null,
info = "", info = "",
}: ParameterComponentType) { }: ParameterComponentType): JSX.Element {
const ref = useRef(null); const ref = useRef(null);
const refHtml = useRef(null); const refHtml = useRef(null);
const refNumberComponents = useRef(0); const refNumberComponents = useRef(0);

View file

@ -20,7 +20,7 @@ export default function GenericNode({
}: { }: {
data: NodeDataType; data: NodeDataType;
selected: boolean; selected: boolean;
}) { }): JSX.Element {
const { setErrorData } = useContext(alertContext); const { setErrorData } = useContext(alertContext);
const showError = useRef(true); const showError = useRef(true);
const { types, deleteNode } = useContext(typesContext); const { types, deleteNode } = useContext(typesContext);

View file

@ -8,7 +8,6 @@ import { classNames } from "../../../../utils/utils";
import { nodeToolbarType } from "../../../../types/components"; import { nodeToolbarType } from "../../../../types/components";
const NodeToolbarComponent = (props): JSX.Element => { const NodeToolbarComponent = (props): JSX.Element => {
console.log(props);
const [nodeLength, setNodeLength] = useState( const [nodeLength, setNodeLength] = useState(
Object.keys(props.data.node.template).filter( Object.keys(props.data.node.template).filter(
(t) => (t) =>

View file

@ -262,7 +262,6 @@ export function varHighlightHTML({ name }: IVarHighlightType): string {
}; };
export function buildTweakObject(tweak: tweakType[]): string { export function buildTweakObject(tweak: tweakType[]): string {
console.log(tweak)
tweak.forEach((el) => { tweak.forEach((el) => {
Object.keys(el).forEach((key) => { Object.keys(el).forEach((key) => {
for (let kp in el[key]) { for (let kp in el[key]) {