Recent leads table widget
ui/src/components/adminDashboard/widgets/RecentLeadsTableWidget
RecentLeadsTableWidget displaying 5 most recent leads for selected businesses and for choosen date range. It works like other widget and written like default table.
Table displays next information about lead:
Full name
Email
Photo
State
Status
Date added (createdAt)
Date updated (updatedAt)
Backend
On backend we have findFiveRecentLeads
function which return us 5 entities which were created recently:
To achieve required result we filter leads createdAt
, teamId
, business
columns and then we sort records by createdAt
and take 5 top records.
Last updated