Seth commited on
Commit ·
bb332e8
1
Parent(s): bc88140
update
Browse files- frontend/src/pages/Deals.jsx +12 -18
frontend/src/pages/Deals.jsx
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
| 2 |
import { Link } from 'react-router-dom';
|
| 3 |
-
import { GitBranch, Loader2, LayoutGrid,
|
| 4 |
import { Button } from '@/components/ui/button';
|
| 5 |
import { Select, SelectTrigger, SelectContent, SelectItem } from '@/components/ui/select';
|
| 6 |
import AppShell from '@/components/layout/AppShell';
|
|
@@ -246,23 +246,17 @@ function PipelineDealCard({ deal, openDeal }) {
|
|
| 246 |
<div className="mt-1.5 break-words text-sm font-semibold tabular-nums leading-tight text-slate-800 sm:text-base">
|
| 247 |
{fmtMoney(deal.deal_value)}
|
| 248 |
</div>
|
| 249 |
-
<div className="mt-2 flex
|
| 250 |
-
<
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
) : null}
|
| 261 |
-
</div>
|
| 262 |
-
<div className="flex shrink-0 gap-1.5 text-slate-400">
|
| 263 |
-
<MessageSquare className="h-4 w-4" aria-hidden />
|
| 264 |
-
<GitBranch className="h-4 w-4" aria-hidden />
|
| 265 |
-
</div>
|
| 266 |
</div>
|
| 267 |
</div>
|
| 268 |
);
|
|
|
|
| 1 |
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
| 2 |
import { Link } from 'react-router-dom';
|
| 3 |
+
import { GitBranch, Loader2, LayoutGrid, Trash2, UserPlus } from 'lucide-react';
|
| 4 |
import { Button } from '@/components/ui/button';
|
| 5 |
import { Select, SelectTrigger, SelectContent, SelectItem } from '@/components/ui/select';
|
| 6 |
import AppShell from '@/components/layout/AppShell';
|
|
|
|
| 246 |
<div className="mt-1.5 break-words text-sm font-semibold tabular-nums leading-tight text-slate-800 sm:text-base">
|
| 247 |
{fmtMoney(deal.deal_value)}
|
| 248 |
</div>
|
| 249 |
+
<div className="mt-2 flex min-w-0 flex-wrap items-end gap-2 sm:mt-3">
|
| 250 |
+
<OwnerAvatarCircle
|
| 251 |
+
userId={deal.owner_user_id}
|
| 252 |
+
initials={deal.owner_initials}
|
| 253 |
+
className="h-8 w-8 shrink-0 font-bold"
|
| 254 |
+
/>
|
| 255 |
+
{deal.account_name ? (
|
| 256 |
+
<span className="min-w-0 max-w-full truncate rounded-md bg-violet-50 px-2 py-0.5 text-xs font-medium text-violet-800">
|
| 257 |
+
{deal.account_name}
|
| 258 |
+
</span>
|
| 259 |
+
) : null}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 260 |
</div>
|
| 261 |
</div>
|
| 262 |
);
|