Skip to content

Commit

Permalink
šŸ› Add gitlab logo and fix displaying of logos in connection and eventā€¦
Browse files Browse the repository at this point in the history
ā€¦ table
  • Loading branch information
mit-27 committed May 10, 2024
1 parent e144944 commit 96d022b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
9 changes: 2 additions & 7 deletions apps/client-ts/src/components/Connection/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { DataTableColumnHeader } from "./../shared/data-table-column-header"
import React,{ useState } from "react"
import { ClipboardIcon } from '@radix-ui/react-icons'
import { toast } from "sonner"
import { getLogoURL } from "@panora/shared"


function truncateMiddle(str: string, maxLength: number) {
Expand Down Expand Up @@ -112,13 +113,7 @@ export const columns: ColumnDef<Connection>[] = [
return (
<div className="flex space-x-2">
<Badge variant={"outline"} className="p-1 pr-2">
<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"
<img src={getLogoURL(provider)} className="w-5 h-5 rounded-sm mr-2"
/>
{provider}
</Badge>
Expand Down
9 changes: 2 additions & 7 deletions apps/client-ts/src/components/Events/columns.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { Checkbox } from "@/components/ui/checkbox"

import { DataTableColumnHeader } from "../shared/data-table-column-header"
import { Event } from "./data/schema"
import { getLogoURL } from "@panora/shared"

export const columns: ColumnDef<Event>[] = [
{
Expand Down Expand Up @@ -140,13 +141,7 @@ export const columns: ColumnDef<Event>[] = [
<div className="flex w-[100px] items-center">
{row.getValue("integration") ?
<Badge variant={"outline"} className="p-1 pr-2">
<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"
<img src={getLogoURL(provider)} className="w-5 h-5 rounded-sm mr-2"
/>
{provider}
</Badge>
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ export const providersConfig: ProvidersConfig = {
apiUrl: 'https://gitlab.com/api/v4',
authBaseUrl: 'https://gitlab.com/oauth/authorize',
},
logoPath: '',
logoPath: 'https://asset.brandfetch.io/idw382nG0m/idVn6myaqy.png',
description: 'Sync & Create accounts, tickets, comments, attachments, contacts, tags, teams and users',
active: true,
authStrategy: AuthStrategy.oauth2
Expand Down

0 comments on commit 96d022b

Please sign in to comment.