Skip to content

Commit

Permalink
patch: remove code
Browse files Browse the repository at this point in the history
  • Loading branch information
potts99 committed Nov 16, 2024
1 parent 1630d8f commit 8a50dfb
Showing 1 changed file with 39 additions and 53 deletions.
92 changes: 39 additions & 53 deletions apps/client/components/TicketDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -976,45 +976,46 @@ export default function Ticket() {
)}
</Button>

{data.ticket.following && data.ticket.following.length > 0 && (
<div className="flex space-x-2">
<Popover>
<PopoverTrigger>
<PanelTopClose className="h-4 w-4" />
</PopoverTrigger>
<PopoverContent>
<div className="flex flex-col space-y-1">
<span className="text-xs">Followers</span>
{data.ticket.following.map(
(follower: any) => {
const userMatch = users.find(
(user) =>
user.id === follower &&
user.id !==
data.ticket.assignedTo.id
);
console.log(userMatch);
return userMatch ? (
<div key={follower.id}>
<span>{userMatch.name}</span>
</div>
) : null;
}
)}
{data.ticket.following &&
data.ticket.following.length > 0 && (
<div className="flex space-x-2">
<Popover>
<PopoverTrigger>
<PanelTopClose className="h-4 w-4" />
</PopoverTrigger>
<PopoverContent>
<div className="flex flex-col space-y-1">
<span className="text-xs">Followers</span>
{data.ticket.following.map(
(follower: any) => {
const userMatch = users.find(
(user) =>
user.id === follower &&
user.id !==
data.ticket.assignedTo.id
);
console.log(userMatch);
return userMatch ? (
<div key={follower.id}>
<span>{userMatch.name}</span>
</div>
) : null;
}
)}

{data.ticket.following.filter(
(follower: any) =>
follower !== data.ticket.assignedTo.id
).length === 0 && (
<span className="text-xs">
This issue has no followers
</span>
)}
</div>
</PopoverContent>
</Popover>
</div>
)}
{data.ticket.following.filter(
(follower: any) =>
follower !== data.ticket.assignedTo.id
).length === 0 && (
<span className="text-xs">
This issue has no followers
</span>
)}
</div>
</PopoverContent>
</Popover>
</div>
)}
</div>
</div>
<div>
Expand Down Expand Up @@ -1276,21 +1277,6 @@ export default function Ticket() {
/>
)}

{clients && (
<ClientCombo
value={clients}
update={setAssignedClient}
defaultName={
data.ticket.client
? data.ticket.client.name
: "No Client Assigned"
}
disabled={data.ticket.locked}
showIcon={true}
hideInitial={false}
/>
)}

{/* <div className="border-t border-gray-200">
<div className="flex flex-row items-center justify-between mt-2">
<span className="text-sm font-medium text-gray-500 dark:text-white">
Expand Down

0 comments on commit 8a50dfb

Please sign in to comment.