add owners name

This commit is contained in:
Flatlogic Bot 2025-06-02 18:40:55 +00:00
parent 842df5f7d7
commit 8da67a15cb
2 changed files with 9 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -4,6 +4,7 @@ import moment from 'moment';
import ListActionsPopover from '../ListActionsPopover';
import { DragSourceMonitor, useDrag } from 'react-dnd';
import countryFlags from './countryFlags';
import dataFormatter from '../../helpers/dataFormatter';
type Props = {
@ -39,7 +40,7 @@ const KanbanCard = ({
isDragging ? 'cursor-grabbing' : 'cursor-grab'
}`}
>
<div className={'flex items-center justify-between'}>
<div className={'flex items-center space-x-2'}>
<Link
href={`/${entityName}/${entityName}-view/?id=${item.id}`}
className={'text-base font-semibold'}
@ -47,6 +48,11 @@ const KanbanCard = ({
{countryFlags[item.country] ? `${countryFlags[item.country]} ` : ''}
{item[showFieldName] ?? 'No data'}
</Link>
{item.owner && (
<span className='text-xs bg-blue-100 text-blue-800 px-1.5 py-0.5 rounded'>
{dataFormatter.usersOneListFormatter(item.owner)}
</span>
)}
</div>
<div className={'flex items-center justify-between'}>
<p>{moment(item.createdAt).format('MMM DD hh:mm a')}</p>