Skip to content

Commit

Permalink
feat: add claim tab data
Browse files Browse the repository at this point in the history
  • Loading branch information
shivanshuit914 committed Nov 8, 2022
1 parent 3ab3b41 commit bb80e98
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/routes/models/application-claim.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
const { formatedDateToUk } = require('../../lib/display-helper')

module.exports = (updatedAt) => {
const formatedDate = formatedDateToUk(updatedAt)
module.exports = (application) => {
const { data } = application
const formatedDate = formatedDateToUk(application.updatedAt)
return {
head: [{ text: 'Date' }, { text: 'Data requested' }, { text: 'Data entered' }],
rows: [
[{ text: formatedDate }, { text: 'Details correct?' }, { text: 'Yes' }]
[{ text: formatedDate }, { text: 'Details correct?' }, { text: data?.confirmCheckDetails }],
[{ text: formatedDate }, { text: 'Date of review' }, { text: formatedDateToUk(data?.visitDate) }],
[{ text: formatedDate }, { text: 'Vet’s name' }, { text: data?.vetName }],
[{ text: formatedDate }, { text: 'Vet’s RCVS number' }, { text: data?.vetRcvs }],
[{ text: formatedDate }, { text: 'Unique reference number (URN)' }, { text: data?.urnResult }]
]
}
}

0 comments on commit bb80e98

Please sign in to comment.