Skip to content

Commit

Permalink
🐛 Added providers logo to jobs tab
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Dec 13, 2023
1 parent 1ecc35a commit fea17a1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
5 changes: 3 additions & 2 deletions apps/webapp/src/components/connections/components/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,10 @@ export const columns: ColumnDef<Connection>[] = [
provider == "zoho" ?
`/providers/crm/${provider}.webp`
: `/providers/crm/${provider}.png`
} className="w-5 h-5 rounded-sm mr-2" />
} className="w-5 h-5 rounded-sm mr-2"
/>
{provider}
</Badge>
</Badge>
</div>
)
},
Expand Down
12 changes: 10 additions & 2 deletions apps/webapp/src/components/events/components/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,21 @@ export const columns: ColumnDef<Event>[] = [
if (!status) {
return null
}*/
const provider = (row.getValue("integration") as string).toLowerCase();

return (
<div className="flex w-[100px] items-center">
{row.getValue("integration") ?
<Badge variant={"outline"} className="bg-neutral-950 p-1 pr-2">
<img src="/providers/crm/hubspot.jpg" className="w-5 h-5 rounded-sm mr-2" />
{row.getValue("integration")}
<img src={
provider == "hubspot" ?
`/providers/crm/${provider}.jpg` :
provider == "zoho" ?
`/providers/crm/${provider}.webp`
: `/providers/crm/${provider}.png`
} className="w-5 h-5 rounded-sm mr-2"
/>
{provider}
</Badge>
: <Badge variant="secondary">_null_</Badge>
}
Expand Down

0 comments on commit fea17a1

Please sign in to comment.