Skip to content

Commit

Permalink
馃獰 馃悰 Fix support link and broken facebook doc (#6400)
Browse files Browse the repository at this point in the history
  • Loading branch information
timroes committed May 5, 2023
1 parent 207ec2b commit 8a7ba2f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
9 changes: 1 addition & 8 deletions airbyte-webapp/src/hooks/services/useDocumentation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,7 @@ export const EMBEDDED_DOCS_PATH = "/docs";

const DOCS_URL = /^https:\/\/docs\.airbyte\.(io|com)/;

const AVAILABLE_INAPP_DOCS = [
"hubspot",
"facebook-marketing",
"google-analytics-v4",
"notion",
"google-search-console",
"instagram",
];
const AVAILABLE_INAPP_DOCS = ["hubspot", "google-analytics-v4", "notion", "google-search-console", "instagram"];

export const useDocumentation = (documentationUrl: string): UseDocumentationResult => {
const shortSetupGuides = useExperiment("connector.shortSetupGuides", false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { FormattedMessage } from "react-intl";

import { ExternalLink } from "components/ui/Link";

import { isCloudApp } from "utils/app";
import { links } from "utils/links";

interface ShowLoadingMessageProps {
Expand All @@ -24,7 +25,9 @@ const ShowLoadingMessage: React.FC<ShowLoadingMessageProps> = ({ connector }) =>
<FormattedMessage
id="form.tooLong"
values={{
lnk: (...lnk: React.ReactNode[]) => <ExternalLink href={links.technicalSupport}>{lnk}</ExternalLink>,
lnk: (...lnk: React.ReactNode[]) => (
<ExternalLink href={isCloudApp() ? links.supportTicketLink : links.technicalSupport}>{lnk}</ExternalLink>
),
}}
/>
) : (
Expand Down

0 comments on commit 8a7ba2f

Please sign in to comment.