feature/IO-3182-Phone-Number-Consent - Checkpoint
This commit is contained in:
@@ -39,9 +39,10 @@ function PhoneNumberConsentList({ bodyshop, currentUser }) {
|
||||
sorter: (a, b) => a.phone_number.localeCompare(b.phone_number)
|
||||
},
|
||||
{
|
||||
title: t("consent.updated_at"),
|
||||
dataIndex: "consent_updated_at",
|
||||
render: (text) => <TimeAgoFormatter>{text}</TimeAgoFormatter>
|
||||
title: t("consent.created_at"),
|
||||
dataIndex: "created_at",
|
||||
render: (text) => <TimeAgoFormatter>{text}</TimeAgoFormatter>,
|
||||
sorter: (a, b) => new Date(a.created_at) - new Date(b.created_at)
|
||||
}
|
||||
];
|
||||
|
||||
@@ -55,7 +56,7 @@ function PhoneNumberConsentList({ bodyshop, currentUser }) {
|
||||
|
||||
<Table
|
||||
columns={columns}
|
||||
dataSource={data?.phone_number_consent}
|
||||
dataSource={data?.phone_number_opt_out}
|
||||
loading={loading}
|
||||
rowKey="id"
|
||||
style={{ marginTop: 16 }}
|
||||
|
||||
Reference in New Issue
Block a user