diff --git a/frontend/components/Campaigns.tsx b/frontend/components/Campaigns.tsx index 0d58be0..dd835e5 100755 --- a/frontend/components/Campaigns.tsx +++ b/frontend/components/Campaigns.tsx @@ -28,7 +28,7 @@ import apiService from '../services/apiService'; import { usePdfPages } from '../hooks/usePdfPages'; import { useUser } from '../contexts/UserContext'; -type SortKey = 'name' | 'proofs' | 'status' | 'agencyLead' | 'agency' | 'lastModified'; +type SortKey = 'name' | 'proofs' | 'status' | 'agencyLead' | 'agency' | 'brandGuidelines' | 'lastModified'; type SortDirection = 'asc' | 'desc'; const formatDate = (isoDateString: string): string => { @@ -298,6 +298,7 @@ const CampaignList: React.FC<{ status: '', agencyLead: '', agency: '', + brandGuidelines: '', lastModified: '', }); @@ -543,6 +544,7 @@ const CampaignList: React.FC<{ ['status', 'Status'], ['agencyLead', 'Created By'], ['agency', 'Owning Agency'], + ['brandGuidelines', 'Brand'], ['lastModified', 'Last Modified'], ] as [SortKey, string][]).map(([key, label]) => ( {!readOnly && } - {(['name', 'proofs', 'status', 'agencyLead', 'agency', 'lastModified'] as SortKey[]).map((key) => ( + {(['name', 'proofs', 'status', 'agencyLead', 'agency', 'brandGuidelines', 'lastModified'] as SortKey[]).map((key) => ( {campaign.agencyLead} {campaign.agency} + {campaign.brandGuidelines} {formatDate(campaign.lastModified)} {!readOnly && (