The trip files have been reorganized. Errors related to vehicle and driver editing have been resolved, archive display issues fixed, and model data display standardized across the project; order and trip-related issues have also been addressed.

This commit is contained in:
m7amedez5511
2026-07-22 14:19:32 +03:00
parent f1a521dd5a
commit b87d81100f
59 changed files with 2261 additions and 3261 deletions

View File

@@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import { Alert, Input, Modal } from "../../UI";
import { Input, Modal, Toast } from "../../UI";
import { ArchivedDriverTable } from "./ArchivedDriverTable";
import { ArchivedDriverDetailModal } from "./ArchivedDriverDetailModal";
import { useArchivedDrivers } from "@/src/hooks/archive/useArchivedDrivers";
@@ -34,9 +34,9 @@ export function ArchivedDrivers({ onClose }: ArchivedDriversProps) {
const [viewDriverId, setViewDriverId] = useState<string | null>(null);
const {
drivers, loading, total, pages, error,
drivers, loading, total, pages, notification,
page, search,
setPage, handleSearch, clearError,
setPage, handleSearch, clearNotification,
} = useArchivedDrivers();
return (
@@ -65,7 +65,7 @@ export function ArchivedDrivers({ onClose }: ArchivedDriversProps) {
/>
</div>
{error && <Alert type="error" message={error} onClose={clearError} />}
<Toast notification={notification} onDismiss={clearNotification} />
<ArchivedDriverTable
drivers={drivers}