feat: deals table
This commit is contained in:
		
							
								
								
									
										17
									
								
								src/components/Selects/ClientSelectNew/ClientSelectNew.tsx
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								src/components/Selects/ClientSelectNew/ClientSelectNew.tsx
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
			
		||||
import ObjectSelect, {ObjectSelectProps} from "../../ObjectSelect/ObjectSelect.tsx";
 | 
			
		||||
import {ClientSchema} from "../../../client";
 | 
			
		||||
import {FC} from "react";
 | 
			
		||||
import useClientsList from "../../../pages/ClientsPage/hooks/useClientsList.tsx";
 | 
			
		||||
 | 
			
		||||
type Props = Omit<ObjectSelectProps<ClientSchema>, 'data'>
 | 
			
		||||
 | 
			
		||||
const ClientSelectNew: FC<Props> = (props) => {
 | 
			
		||||
    const {clients} = useClientsList();
 | 
			
		||||
    return (
 | 
			
		||||
        <ObjectSelect
 | 
			
		||||
            data={clients}
 | 
			
		||||
            {...props}
 | 
			
		||||
        />
 | 
			
		||||
    )
 | 
			
		||||
}
 | 
			
		||||
export default ClientSelectNew;
 | 
			
		||||
		Reference in New Issue
	
	Block a user