feat: add inspection_expiry/has_etc/tire_type fields, icons in schedule view, and WebSocket real-time sync
Co-authored-by: pdf114514 <57948770+pdf114514@users.noreply.github.com> Agent-Logs-Url: https://github.com/pdf114514/CarReservation/sessions/6d0f25ae-6db4-4937-ae2b-6674456a5ca1
This commit is contained in:
@@ -31,7 +31,7 @@ function dateToStr(date) {
|
||||
return format(date, 'yyyy-MM-dd');
|
||||
}
|
||||
|
||||
export default function TimelineView() {
|
||||
export default function TimelineView({ reloadKey = 0 }) {
|
||||
const [cars, setCars] = useState([]);
|
||||
const [reservations, setReservations] = useState([]);
|
||||
const [loading, setLoading] = useState(true);
|
||||
@@ -75,7 +75,7 @@ export default function TimelineView() {
|
||||
|
||||
useEffect(() => {
|
||||
loadData();
|
||||
}, [loadData]);
|
||||
}, [loadData, reloadKey]);
|
||||
|
||||
// Close context menu on click / Escape
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user