import React from 'react'; import CardBox from '../CardBox'; import dataFormatter from '../../helpers/dataFormatter'; import ListActionsPopover from "../ListActionsPopover"; import {useAppSelector} from "../../stores/hooks"; import {Pagination} from "../Pagination"; import LoadingSpinner from "../LoadingSpinner"; import Link from 'next/link'; type Props = { flights: any[]; loading: boolean; onDelete: (id: string) => void; currentPage: number; numPages: number; onPageChange: (page: number) => void; }; const ListFlights = ({ flights, loading, onDelete, currentPage, numPages, onPageChange }: Props) => { const corners = useAppSelector((state) => state.style.corners); const bgColor = useAppSelector((state) => state.style.cardsColor); return ( <>
Aircraft
{ dataFormatter.aircraftsOneListFormatter(item.aircraft) }
StartTime
{ dataFormatter.dateTimeFormatter(item.start_time) }
EndTime
{ dataFormatter.dateTimeFormatter(item.end_time) }
StartTachTime
{ item.start_tach_time }
EndTachTime
{ item.end_tach_time }
HobbsTime
{ item.hobbs_time }
Origin
{ item.origin }
Destination
{ item.destination }
Remarks
{ item.remarks }
Time recorded for
{ item.time_recorded_for }
No data to display