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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user