Refactor types organization for table component
This commit is contained in:
parent
deb95b355f
commit
c0683dafb3
12 changed files with 1490 additions and 1195 deletions
|
|
@ -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[];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue