Skip to content

Commit

Permalink
93474 added Aangemaakt op field to meldingen
Browse files Browse the repository at this point in the history
  • Loading branch information
remyvdwereld committed Sep 4, 2024
1 parent 7ae7120 commit d4ac884
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export default (report: RentalReport) => ({
"Check out": <DateDisplay date={ report?.eindDatum } />,
"Gasten": report?.gasten,
"Gewijzigd": report?.isAangepast ? "Ja" : "Nee",
"Verwijderd": report?.isVerwijderd ? "Ja" : "Nee"
"Verwijderd": report?.isVerwijderd ? "Ja" : "Nee",
"Aangemaakt op": <DateDisplay date={ report?.gemaaktOp } />
})
1 change: 1 addition & 0 deletions src/components/HolidayRentalReports/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export type RentalReport = {
gasten: number
isAangepast: Boolean
isVerwijderd: Boolean
gemaaktOp: string // date-time
}
18 changes: 12 additions & 6 deletions src/stories/mockedData/holidayRentalReportsData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,47 +7,53 @@ const holidayRentalData: RentalReport[] = [
"nachten": 3,
"gasten": 4,
"isAangepast": true,
"isVerwijderd": true
"isVerwijderd": true,
"gemaaktOp": "2024-06-26T18:08:46.5666577Z"
},
{
"startDatum": "2023-01-20T00:00:00Z",
"eindDatum": "2023-01-22T00:00:00Z",
"nachten": 2,
"gasten": 1,
"isAangepast": false,
"isVerwijderd": false
"isVerwijderd": false,
"gemaaktOp": "2024-06-26T18:07:11.3316885Z"
},
{
"startDatum": "2023-01-12T00:00:00Z",
"eindDatum": "2023-01-14T00:00:00Z",
"nachten": 2,
"gasten": 4,
"isAangepast": true,
"isVerwijderd": false
"isVerwijderd": false,
"gemaaktOp": "2024-06-26T18:08:46.5666577Z"
},
{
"startDatum": "2023-01-09T00:00:00Z",
"eindDatum": "2023-01-11T00:00:00Z",
"nachten": 2,
"gasten": 3,
"isAangepast": false,
"isVerwijderd": false
"isVerwijderd": false,
"gemaaktOp": "2024-06-26T18:08:46.5666577Z"
},
{
"startDatum": "2023-01-02T00:00:00Z",
"eindDatum": "2023-01-05T00:00:00Z",
"nachten": 3,
"gasten": 4,
"isAangepast": false,
"isVerwijderd": false
"isVerwijderd": false,
"gemaaktOp": "2024-05-20T09:29:37.4990796Z"
},
{
"startDatum": "2022-12-30T00:00:00Z",
"eindDatum": "2023-01-04T00:00:00Z",
"nachten": 5,
"gasten": 4,
"isAangepast": true,
"isVerwijderd": false
"isVerwijderd": false,
"gemaaktOp": "2024-06-26T18:07:11.3316885Z"
}
]

Expand Down

0 comments on commit d4ac884

Please sign in to comment.