diff --git a/apps/app/src/app/(protected)/events/Events.tsx b/apps/app/src/app/(protected)/events/Events.tsx
index 4039045..9173778 100644
--- a/apps/app/src/app/(protected)/events/Events.tsx
+++ b/apps/app/src/app/(protected)/events/Events.tsx
@@ -1,8 +1,10 @@
'use client';
import { GoogleMap, Marker, useLoadScript } from '@react-google-maps/api';
+import Image from 'next/image';
import React, { useCallback, useMemo, useRef } from 'react';
import { BiPurchaseTag } from 'react-icons/bi';
+import { BiEdit, BiTrash, BiBookmark, BiBookmarkHeart } from 'react-icons/bi';
type Props = {
events: any[];
@@ -76,7 +78,15 @@ export const EventsLala = ({ events }: Props) => {
{event.description}
@@ -103,6 +113,8 @@ export const EventsLala = ({ events }: Props) => {
)}
+
+
Jobs
{/* table of roles */}
{roles?.length && (
@@ -122,25 +134,66 @@ export const EventsLala = ({ events }: Props) => {
{event.roles.map((role: any, index: any) => (
- {Object.keys(role)
+ {jobAttributes
+ .map(attr => {
+ return { name: attr.field_name, value: role[attr.field_name] };
+ })
+ .map((field: any) => {
+ console.log('🚀 file: Events.tsx:170 field_name:', field.name);
+ return (
+
+ {field.name === 'number_workers'
+ ? `${role.accepted || 0}/${field.value}`
+ : field.value}
+ {/* {field.name === 'number_workers' ? 'lalalal' : 'sdfsdfds'} */}
+ {/* {field_name === 'number_workers' ? 'lalalal' : field_name} */}
+ {/* {role[field_name]} */}
+ |
+ );
+ })}
+
+ {/* {Object.keys(role)
.filter((key: string) =>
jobAttributes.map(attr => attr.field_name).includes(key)
)
- .map((field_name: string) => (
-
- {role[field_name]}
- |
- ))}
- {/*
-
-
- | */}
+ .map((field_name: string) => {
+ console.log('🚀 file: Events.tsx:170 field_name:', field_name);
+ return (
+
+ {field_name === 'number_workers' ? `${role.accepted}/${role[field_name]}` : role[field_name]}
+ {field_name === 'number_workers' ? 'lalalal' : role[field_name]}
+ {field_name === 'number_workers' ? 'lalalal' : field_name}
+ {role[field_name]}
+ |
+ );
+ })} */}
+
+
+
+
+ |
))}