Added few functions
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useNotification } from './NotificationProvider';
|
||||
import { useBodyScrollLock } from '@/lib/body-scroll-lock';
|
||||
|
||||
interface Trajet {
|
||||
id: string;
|
||||
@@ -23,6 +24,7 @@ interface ValidationModalProps {
|
||||
|
||||
export default function ValidationModal({ trajet, onClose, onSuccess }: ValidationModalProps) {
|
||||
const { showNotification } = useNotification();
|
||||
useBodyScrollLock(true);
|
||||
const [loading, setLoading] = useState(false);
|
||||
const [dureeTrajet, setDureeTrajet] = useState<number | null>(null);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user