Skip to content

Commit 26c719b

Browse files
committed
fix: use new Link component
1 parent 283762b commit 26c719b

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

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

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Link from "@mui/material/Link";
21
import Skeleton from "@mui/material/Skeleton";
32
import Table from "@mui/material/Table";
43
import TableBody from "@mui/material/TableBody";
@@ -26,6 +25,7 @@ import {
2625
} from "components/HelpTooltip/HelpTooltip";
2726
import { Input } from "components/Input/Input";
2827
import { Label } from "components/Label/Label";
28+
import { Link } from "components/Link/Link";
2929
import { Loader } from "components/Loader/Loader";
3030
import {
3131
MultiSelectCombobox,
@@ -38,7 +38,7 @@ import {
3838
} from "components/TableLoader/TableLoader";
3939
import { TabLink, Tabs, TabsList } from "components/Tabs/Tabs";
4040
import { useFormik } from "formik";
41-
import { Plus, SquareArrowOutUpRight, Trash } from "lucide-react";
41+
import { Plus, Trash } from "lucide-react";
4242
import { type FC, useState } from "react";
4343
import { useSearchParams } from "react-router-dom";
4444
import { docs } from "utils/docs";
@@ -174,15 +174,10 @@ const IdpMappingTable: FC<IdpMappingTableProps> = ({
174174
message={`No ${type} Mappings`}
175175
isCompact
176176
cta={
177-
<Button variant="outline" asChild>
178-
<a
179-
href={docs("/admin/users/idp-sync")}
180-
className="no-underline"
181-
>
182-
<SquareArrowOutUpRight size={14} />
183-
How to setup IdP {type} sync
184-
</a>
185-
</Button>
177+
<Link
178+
text={`How to setup IdP ${type} sync`}
179+
href={docs("/admin/users/idp-sync")}
180+
/>
186181
}
187182
/>
188183
</TableCell>
@@ -710,9 +705,10 @@ const LegacyGroupSyncHeader: FC = () => {
710705
configure IdP sync via the CLI or the UI, which enables sync to be
711706
configured for any organization, and for those settings to be
712707
persisted without manually setting environment variables.{" "}
713-
<Link href={docs("/admin/users/idp-sync")}>
714-
Learn more&hellip;
715-
</Link>
708+
<Link
709+
text="Learn more&hellip;"
710+
href={docs("/admin/users/idp-sync")}
711+
/>
716712
</HelpTooltipText>
717713
</HelpTooltipContent>
718714
</HelpTooltip>

0 commit comments

Comments
 (0)