Skip to content

Commit

Permalink
🐛 Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Jan 31, 2024
1 parent 90b28b2 commit 720c30c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 4 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/embedded-catalog/react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function App() {
<QueryClientProvider client={queryClient}>
<div>
<h1 className="text-sm">
<ProviderCard name={"Hubspot"} projectId={"1"} linkedUserIdOrRemoteUserInfo={"1"} />
<ProviderCard name={"front"} projectId={"1"} linkedUserIdOrRemoteUserInfo={"1"} />
</h1>
</div>
</QueryClientProvider>
Expand Down
8 changes: 5 additions & 3 deletions apps/embedded-catalog/react/src/lib/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import config from '@/helpers/config';
import { getDescription } from '@/helpers/utils';
import { findProviderVertical, getDescription } from '@/helpers/utils';
import useLinkedUserMutation from '@/hooks/mutations/useLinkedUserMutation';
import useLinkedUser from '@/hooks/queries/useLinkedUserId';
import useOAuth from '@/hooks/useOAuth';
Expand All @@ -23,6 +23,8 @@ const ProviderCard = ({name, projectId, linkedUserIdOrRemoteUserInfo}: ProviderC
const [originId, setOriginId] = useState("")
const [loading, setLoading] = useState(false)

const vertical = findProviderVertical(name.toLowerCase())
console.log("vertical "+ vertical)
const { mutate } = useLinkedUserMutation();
const {data: linkedUser} = useLinkedUser(originId);

Expand Down Expand Up @@ -75,9 +77,9 @@ const ProviderCard = ({name, projectId, linkedUserIdOrRemoteUserInfo}: ProviderC
>

<div className="text-center flex items-center">
<img src={`public/assets/crm/${name}_logo.png`} width={"30px"} className="mx-auto mb-4 w-12 h-12 rounded-xl"/>
<img src={`public/assets/${vertical!.toLowerCase()}/${name}_logo.png`} width={"30px"} className="mx-auto mb-4 w-12 h-12 rounded-xl"/>
<a href="#">
<h5 className="mb-2 text-2xl font-semibold tracking-tight text-gray-900 dark:text-white pl-4">Integrate with {name}</h5>
<h5 className="mb-2 text-2xl font-semibold tracking-tight text-gray-900 dark:text-white">Integrate with {name}</h5>
</a>
</div>

Expand Down

0 comments on commit 720c30c

Please sign in to comment.