ticket
This commit is contained in:
@@ -116,7 +116,7 @@ const TicketDetail: FC = () => {
|
|||||||
|
|
||||||
{
|
{
|
||||||
getMessages.data?.data?.messages.map((item: TicketMessageType) => {
|
getMessages.data?.data?.messages.map((item: TicketMessageType) => {
|
||||||
if (item?.author?.role?.name === 'user') {
|
if (item?.author?.roles[0]?.name === 'user') {
|
||||||
return (
|
return (
|
||||||
<div key={item.id} className='mt-6 xl:text-sm text-xs bg-[#F6F7FA] p-6 rounded-3xl rounded-tr-none xl:max-w-[70%] max-w-[90%]'>
|
<div key={item.id} className='mt-6 xl:text-sm text-xs bg-[#F6F7FA] p-6 rounded-3xl rounded-tr-none xl:max-w-[70%] max-w-[90%]'>
|
||||||
<div className='leading-7'>
|
<div className='leading-7'>
|
||||||
|
|||||||
@@ -44,9 +44,9 @@ export type TicketMessageType = {
|
|||||||
id: string;
|
id: string;
|
||||||
firstName: string;
|
firstName: string;
|
||||||
lastName: string;
|
lastName: string;
|
||||||
role: {
|
roles: {
|
||||||
name: string;
|
name: string;
|
||||||
};
|
}[];
|
||||||
};
|
};
|
||||||
attachments: {
|
attachments: {
|
||||||
attachmentUrl: string;
|
attachmentUrl: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user