11import LaunchOutlined from "@mui/icons-material/LaunchOutlined" ;
22import Button from "@mui/material/Button" ;
3- import { getErrorMessage } from "api/errors" ;
43import { groupsByOrganization } from "api/queries/groups" ;
54import {
65 groupIdpSyncSettings ,
76 roleIdpSyncSettings ,
87} from "api/queries/organizations" ;
8+ import { ChooseOne , Cond } from "components/Conditionals/ChooseOne" ;
99import { EmptyState } from "components/EmptyState/EmptyState" ;
10- import { displayError } from "components/GlobalSnackbar/utils" ;
11- import { Loader } from "components/Loader/Loader" ;
10+ import { Paywall } from "components/Paywall/Paywall" ;
1211import { SettingsHeader } from "components/SettingsHeader/SettingsHeader" ;
1312import { Stack } from "components/Stack/Stack" ;
1413import { useFeatureVisibility } from "modules/dashboard/useFeatureVisibility" ;
15- import { type FC , useEffect } from "react" ;
14+ import type { FC } from "react" ;
1615import { Helmet } from "react-helmet-async" ;
1716import { useQueries } from "react-query" ;
1817import { useParams } from "react-router-dom" ;
@@ -21,9 +20,6 @@ import { pageTitle } from "utils/page";
2120import { useOrganizationSettings } from "../ManagementSettingsLayout" ;
2221import { IdpSyncHelpTooltip } from "./IdpSyncHelpTooltip" ;
2322import IdpSyncPageView from "./IdpSyncPageView" ;
24- import { ErrorAlert } from "components/Alert/ErrorAlert" ;
25- import { Paywall } from "components/Paywall/Paywall" ;
26- import { ChooseOne , Cond } from "components/Conditionals/ChooseOne" ;
2723
2824export const IdpSyncPage : FC = ( ) => {
2925 const { organization : organizationName } = useParams ( ) as {
@@ -47,14 +43,6 @@ export const IdpSyncPage: FC = () => {
4743 return < EmptyState message = "Organization not found" /> ;
4844 }
4945
50- // if (
51- // groupsQuery.isLoading ||
52- // groupIdpSyncSettingsQuery.isLoading ||
53- // roleIdpSyncSettingsQuery.isLoading
54- // ) {
55- // return <Loader />;
56- // }
57-
5846 const error =
5947 groupIdpSyncSettingsQuery . error ||
6048 roleIdpSyncSettingsQuery . error ||
0 commit comments