Skip to content

Commit e4f650b

Browse files
Tim Roesetsybaev
authored andcommitted
Fix back link on signup page (#10732)
* Fix back link on signup page * Add and correct uiConfig links
1 parent 1c34d18 commit e4f650b

File tree

2 files changed

+17
-33
lines changed

2 files changed

+17
-33
lines changed

airbyte-webapp/src/config/uiConfig.ts

Lines changed: 12 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,27 @@
11
const BASE_DOCS_LINK = "https://docs.airbyte.io";
22

3-
type UiConfig = {
4-
helpLink: string;
5-
gitLink: string;
6-
updateLink: string;
7-
slackLink: string;
8-
termsLink: string;
9-
privacyLink: string;
10-
docsLink: string;
11-
configurationArchiveLink: string;
12-
namespaceLink: string;
13-
normalizationLink: string;
14-
tutorialLink: string;
15-
technicalSupport: string;
16-
statusLink: string;
17-
recipesLink: string;
18-
demoLink: string;
19-
syncModeLink: string;
20-
};
21-
22-
const uiConfig: UiConfig = {
3+
const uiConfig = {
234
technicalSupport: `${BASE_DOCS_LINK}/troubleshooting/on-deploying`,
24-
termsLink: "https://airbyte.io/terms",
25-
privacyLink: "https://airbyte.io/privacy-policy",
26-
helpLink: "https://airbyte.io/community",
27-
gitLink: "https://docs.airbyte.io/quickstart/deploy-airbyte",
5+
termsLink: "https://airbyte.com/terms",
6+
privacyLink: "https://airbyte.com/privacy-policy",
7+
helpLink: "https://airbyte.com/community",
8+
gitLink: "https://docs.airbyte.com/quickstart/deploy-airbyte",
289
updateLink: `${BASE_DOCS_LINK}/upgrading-airbyte`,
29-
slackLink: "https://slack.airbyte.io",
10+
slackLink: "https://slack.airbyte.com",
3011
docsLink: BASE_DOCS_LINK,
3112
configurationArchiveLink: `${BASE_DOCS_LINK}/tutorials/upgrading-airbyte`,
3213
normalizationLink: `${BASE_DOCS_LINK}/understanding-airbyte/connections#airbyte-basic-normalization`,
3314
namespaceLink: `${BASE_DOCS_LINK}/understanding-airbyte/namespaces`,
3415
tutorialLink: "https://www.youtube.com/watch?v=Rcpt5SVsMpk&feature=emb_logo",
3516
statusLink: "https://status.airbyte.io/",
36-
recipesLink: "https://airbyte.io/recipes",
17+
recipesLink: "https://airbyte.com/recipes",
3718
syncModeLink:
38-
"https://docs.airbyte.io/understanding-airbyte/connections/incremental-deduped-history",
19+
"https://docs.airbyte.com/understanding-airbyte/connections/incremental-deduped-history",
3920
demoLink: "https://demo.airbyte.io",
40-
};
21+
webpageLink: "https://airbyte.com",
22+
} as const;
23+
24+
type UiConfig = Record<keyof typeof uiConfig, string>;
4125

4226
export type { UiConfig };
4327
export { uiConfig };

airbyte-webapp/src/packages/cloud/views/auth/components/Header.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { faArrowLeft } from "@fortawesome/free-solid-svg-icons";
77

88
import { Button } from "components";
99
import { CloudRoutes } from "../../../cloudRoutes";
10+
import { useConfig } from "config";
1011

1112
const Links = styled.div`
1213
width: 100%;
@@ -16,13 +17,10 @@ const Links = styled.div`
1617
align-items: center;
1718
`;
1819

19-
const BackLink = styled.div`
20+
const BackLink = styled.a`
2021
font-style: normal;
2122
font-weight: bold;
22-
font-size: 14px;
23-
line-height: 17px;
2423
color: ${({ theme }) => theme.primaryColor};
25-
cursor: pointer;
2624
2725
&:hover {
2826
opacity: 0.8;
@@ -45,9 +43,11 @@ type HeaderProps = {
4543
};
4644

4745
const Header: React.FC<HeaderProps> = ({ toLogin }) => {
46+
const { ui } = useConfig();
47+
4848
return (
4949
<Links>
50-
<BackLink>
50+
<BackLink href={ui.webpageLink}>
5151
<FontAwesomeIcon icon={faArrowLeft} />
5252
<TextBlock>Back</TextBlock>
5353
</BackLink>

0 commit comments

Comments
 (0)