Refactor types organization for table component

This commit is contained in:
Alexander Navarro 2023-11-11 11:24:51 -03:00
parent deb95b355f
commit c0683dafb3
12 changed files with 1490 additions and 1195 deletions

View file

@ -1,15 +1,14 @@
import React, {
useState,
type ChangeEventHandler,
useRef,
useEffect,
} from 'react';
import React, { useState, useRef, useEffect } from 'react';
import styles from './SelectInput.module.css';
interface Option {
label: string;
value: any;
}
interface Props {
onChange: (value: string | string[] | null) => void;
options: [{ label: string; value: any }];
keyData: string;
options: Option[];
isMultiple?: boolean;
value?: string | string[];
}