Skip to content

Commit 2ab31a5

Browse files
committed
feat: create link component
1 parent 267f329 commit 2ab31a5

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

site/src/pages/ManagementSettingsPage/IdpSyncPage/IdpSyncPage.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import { ChooseOne, Cond } from "components/Conditionals/ChooseOne";
1111
import { EmptyState } from "components/EmptyState/EmptyState";
1212
import { displayError } from "components/GlobalSnackbar/utils";
1313
import { displaySuccess } from "components/GlobalSnackbar/utils";
14+
import { Link } from "components/Link/Link";
1415
import { Paywall } from "components/Paywall/Paywall";
15-
import { SquareArrowOutUpRight } from "lucide-react";
1616
import { useFeatureVisibility } from "modules/dashboard/useFeatureVisibility";
1717
import { useOrganizationSettings } from "modules/management/OrganizationSettingsLayout";
1818
import { type FC, useEffect } from "react";
@@ -107,16 +107,9 @@ export const IdpSyncPage: FC = () => {
107107
<p className="flex flex-row gap-1 text-sm text-content-secondary font-medium m-0">
108108
Automatically assign groups or roles to a user based on their IdP
109109
claims.
110-
<a
111-
href={docs("/admin/users/idp-sync")}
112-
className="flex flex-row text-content-link items-center gap-1 no-underline hover:underline visited:text-content-link"
113-
>
114-
View docs
115-
<SquareArrowOutUpRight size={14} />
116-
</a>
110+
<Link text="View docs" href={docs("/admin/users/idp-sync")} />
117111
</p>
118112
</div>
119-
{/* <ExportPolicyButton syncSettings={orgSyncSettingsData} /> */}
120113
</header>
121114
<ChooseOne>
122115
<Cond condition={!isIdpSyncEnabled}>

site/src/pages/ManagementSettingsPage/IdpSyncPage/IdpSyncPageView.tsx

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -697,12 +697,7 @@ const TableLoader = () => {
697697

698698
const LegacyGroupSyncHeader: FC = () => {
699699
return (
700-
<h4
701-
css={{
702-
fontSize: 20,
703-
fontWeight: 500,
704-
}}
705-
>
700+
<h4 className="text-xl font-medium">
706701
<div className="flex items-end gap-2">
707702
<span>Legacy group sync settings</span>
708703
<HelpTooltip>

0 commit comments

Comments
 (0)