Added few functions
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import ChauffeurForm from './ChauffeurForm';
|
||||
import ConfirmModal from './ConfirmModal';
|
||||
import { useBodyScrollLock } from '@/lib/body-scroll-lock';
|
||||
|
||||
interface Chauffeur {
|
||||
id: string;
|
||||
@@ -39,6 +40,7 @@ export default function ChauffeursTable() {
|
||||
show: boolean;
|
||||
id: string | null;
|
||||
} | null>(null);
|
||||
useBodyScrollLock(showImportModal || !!(resultModal?.show) || !!viewingChauffeur);
|
||||
|
||||
const fetchChauffeurs = async (searchTerm: string = '') => {
|
||||
setLoading(true);
|
||||
|
||||
Reference in New Issue
Block a user