add owners name
This commit is contained in:
parent
842df5f7d7
commit
8da67a15cb
File diff suppressed because one or more lines are too long
@ -4,6 +4,7 @@ import moment from 'moment';
|
|||||||
import ListActionsPopover from '../ListActionsPopover';
|
import ListActionsPopover from '../ListActionsPopover';
|
||||||
import { DragSourceMonitor, useDrag } from 'react-dnd';
|
import { DragSourceMonitor, useDrag } from 'react-dnd';
|
||||||
import countryFlags from './countryFlags';
|
import countryFlags from './countryFlags';
|
||||||
|
import dataFormatter from '../../helpers/dataFormatter';
|
||||||
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
@ -39,7 +40,7 @@ const KanbanCard = ({
|
|||||||
isDragging ? 'cursor-grabbing' : 'cursor-grab'
|
isDragging ? 'cursor-grabbing' : 'cursor-grab'
|
||||||
}`}
|
}`}
|
||||||
>
|
>
|
||||||
<div className={'flex items-center justify-between'}>
|
<div className={'flex items-center space-x-2'}>
|
||||||
<Link
|
<Link
|
||||||
href={`/${entityName}/${entityName}-view/?id=${item.id}`}
|
href={`/${entityName}/${entityName}-view/?id=${item.id}`}
|
||||||
className={'text-base font-semibold'}
|
className={'text-base font-semibold'}
|
||||||
@ -47,6 +48,11 @@ const KanbanCard = ({
|
|||||||
{countryFlags[item.country] ? `${countryFlags[item.country]} ` : ''}
|
{countryFlags[item.country] ? `${countryFlags[item.country]} ` : ''}
|
||||||
{item[showFieldName] ?? 'No data'}
|
{item[showFieldName] ?? 'No data'}
|
||||||
</Link>
|
</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>
|
||||||
<div className={'flex items-center justify-between'}>
|
<div className={'flex items-center justify-between'}>
|
||||||
<p>{moment(item.createdAt).format('MMM DD hh:mm a')}</p>
|
<p>{moment(item.createdAt).format('MMM DD hh:mm a')}</p>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user