Skip to content

Commit 8a50dfb

Browse files
committed
patch: remove code
1 parent 1630d8f commit 8a50dfb

File tree

1 file changed

+39
-53
lines changed
  • apps/client/components/TicketDetails

1 file changed

+39
-53
lines changed

apps/client/components/TicketDetails/index.tsx

Lines changed: 39 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -976,45 +976,46 @@ export default function Ticket() {
976976
)}
977977
</Button>
978978

979-
{data.ticket.following && data.ticket.following.length > 0 && (
980-
<div className="flex space-x-2">
981-
<Popover>
982-
<PopoverTrigger>
983-
<PanelTopClose className="h-4 w-4" />
984-
</PopoverTrigger>
985-
<PopoverContent>
986-
<div className="flex flex-col space-y-1">
987-
<span className="text-xs">Followers</span>
988-
{data.ticket.following.map(
989-
(follower: any) => {
990-
const userMatch = users.find(
991-
(user) =>
992-
user.id === follower &&
993-
user.id !==
994-
data.ticket.assignedTo.id
995-
);
996-
console.log(userMatch);
997-
return userMatch ? (
998-
<div key={follower.id}>
999-
<span>{userMatch.name}</span>
1000-
</div>
1001-
) : null;
1002-
}
1003-
)}
979+
{data.ticket.following &&
980+
data.ticket.following.length > 0 && (
981+
<div className="flex space-x-2">
982+
<Popover>
983+
<PopoverTrigger>
984+
<PanelTopClose className="h-4 w-4" />
985+
</PopoverTrigger>
986+
<PopoverContent>
987+
<div className="flex flex-col space-y-1">
988+
<span className="text-xs">Followers</span>
989+
{data.ticket.following.map(
990+
(follower: any) => {
991+
const userMatch = users.find(
992+
(user) =>
993+
user.id === follower &&
994+
user.id !==
995+
data.ticket.assignedTo.id
996+
);
997+
console.log(userMatch);
998+
return userMatch ? (
999+
<div key={follower.id}>
1000+
<span>{userMatch.name}</span>
1001+
</div>
1002+
) : null;
1003+
}
1004+
)}
10041005

1005-
{data.ticket.following.filter(
1006-
(follower: any) =>
1007-
follower !== data.ticket.assignedTo.id
1008-
).length === 0 && (
1009-
<span className="text-xs">
1010-
This issue has no followers
1011-
</span>
1012-
)}
1013-
</div>
1014-
</PopoverContent>
1015-
</Popover>
1016-
</div>
1017-
)}
1006+
{data.ticket.following.filter(
1007+
(follower: any) =>
1008+
follower !== data.ticket.assignedTo.id
1009+
).length === 0 && (
1010+
<span className="text-xs">
1011+
This issue has no followers
1012+
</span>
1013+
)}
1014+
</div>
1015+
</PopoverContent>
1016+
</Popover>
1017+
</div>
1018+
)}
10181019
</div>
10191020
</div>
10201021
<div>
@@ -1276,21 +1277,6 @@ export default function Ticket() {
12761277
/>
12771278
)}
12781279

1279-
{clients && (
1280-
<ClientCombo
1281-
value={clients}
1282-
update={setAssignedClient}
1283-
defaultName={
1284-
data.ticket.client
1285-
? data.ticket.client.name
1286-
: "No Client Assigned"
1287-
}
1288-
disabled={data.ticket.locked}
1289-
showIcon={true}
1290-
hideInitial={false}
1291-
/>
1292-
)}
1293-
12941280
{/* <div className="border-t border-gray-200">
12951281
<div className="flex flex-row items-center justify-between mt-2">
12961282
<span className="text-sm font-medium text-gray-500 dark:text-white">

0 commit comments

Comments
 (0)