Merge pull request #387 from the-luap/feat/events-photos-column
feat(events): add Photos column to admin events list (#384)
This commit is contained in:
@@ -434,6 +434,9 @@ export const EventsListPage: React.FC = () => {
|
|||||||
<th className="px-6 py-3 text-left text-xs font-medium text-neutral-500 dark:text-neutral-400 uppercase tracking-wider">
|
<th className="px-6 py-3 text-left text-xs font-medium text-neutral-500 dark:text-neutral-400 uppercase tracking-wider">
|
||||||
{t('events.date')}
|
{t('events.date')}
|
||||||
</th>
|
</th>
|
||||||
|
<th className="px-6 py-3 text-right text-xs font-medium text-neutral-500 dark:text-neutral-400 uppercase tracking-wider">
|
||||||
|
{t('events.photos', 'Photos')}
|
||||||
|
</th>
|
||||||
<th className="px-6 py-3 text-left text-xs font-medium text-neutral-500 dark:text-neutral-400 uppercase tracking-wider">
|
<th className="px-6 py-3 text-left text-xs font-medium text-neutral-500 dark:text-neutral-400 uppercase tracking-wider">
|
||||||
{t('events.status')}
|
{t('events.status')}
|
||||||
</th>
|
</th>
|
||||||
@@ -448,7 +451,7 @@ export const EventsListPage: React.FC = () => {
|
|||||||
<tbody className="bg-white dark:bg-neutral-800 divide-y divide-neutral-200 dark:divide-neutral-700">
|
<tbody className="bg-white dark:bg-neutral-800 divide-y divide-neutral-200 dark:divide-neutral-700">
|
||||||
{events.length === 0 ? (
|
{events.length === 0 ? (
|
||||||
<tr>
|
<tr>
|
||||||
<td colSpan={7} className="px-6 py-12 text-center text-neutral-500 dark:text-neutral-400">
|
<td colSpan={8} className="px-6 py-12 text-center text-neutral-500 dark:text-neutral-400">
|
||||||
{t('events.noEventsFound')}
|
{t('events.noEventsFound')}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@@ -493,6 +496,9 @@ export const EventsListPage: React.FC = () => {
|
|||||||
<td className="px-6 py-4 text-sm text-neutral-700 dark:text-neutral-300">
|
<td className="px-6 py-4 text-sm text-neutral-700 dark:text-neutral-300">
|
||||||
{event.event_date ? format(parseISO(event.event_date), 'MMM d, yyyy') : 'N/A'}
|
{event.event_date ? format(parseISO(event.event_date), 'MMM d, yyyy') : 'N/A'}
|
||||||
</td>
|
</td>
|
||||||
|
<td className="px-6 py-4 text-sm text-right tabular-nums text-neutral-700 dark:text-neutral-300">
|
||||||
|
{event.photo_count ?? 0}
|
||||||
|
</td>
|
||||||
<td className="px-6 py-4">
|
<td className="px-6 py-4">
|
||||||
<span className={`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${status.color}`}>
|
<span className={`inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium ${status.color}`}>
|
||||||
{status.label}
|
{status.label}
|
||||||
|
|||||||
Reference in New Issue
Block a user