Added few functions

This commit is contained in:
2026-02-16 14:43:02 +01:00
parent 0c908a21ac
commit 1ec4c935c9
31 changed files with 352 additions and 35 deletions

View File

@@ -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);