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

@@ -6,6 +6,7 @@ import {
Spinner,
ArchiveButton,
ConfirmDialog,
Toast,
} from "@/src/Components/UI";
import { ArchivedDrivers } from "@/src/Components/Driver/archive/ArchivedDrivers";
import { useDrivers } from "@/src/hooks/useDriver";
@@ -87,6 +88,7 @@ export default function DriversPage() {
updateDriver,
deleteDriver,
notification,
clearNotification,
} = useDrivers();
// ── Panel / modal state ───────────────────────────────────────────────────
@@ -174,9 +176,7 @@ export default function DriversPage() {
/>
{/* ── Notifications ── */}
{notification && (
<Alert type={notification.type} message={notification.message} />
)}
<Toast notification={notification} onDismiss={clearNotification} />
{error && <Alert type="error" message={error} onClose={clearError} />}
{/* ── Table ── */}