1
1
import LaunchOutlined from "@mui/icons-material/LaunchOutlined" ;
2
2
import Button from "@mui/material/Button" ;
3
- import { getErrorMessage } from "api/errors" ;
4
3
import { groupsByOrganization } from "api/queries/groups" ;
5
4
import {
6
5
groupIdpSyncSettings ,
7
6
roleIdpSyncSettings ,
8
7
} from "api/queries/organizations" ;
8
+ import { ChooseOne , Cond } from "components/Conditionals/ChooseOne" ;
9
9
import { 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" ;
12
11
import { SettingsHeader } from "components/SettingsHeader/SettingsHeader" ;
13
12
import { Stack } from "components/Stack/Stack" ;
14
13
import { useFeatureVisibility } from "modules/dashboard/useFeatureVisibility" ;
15
- import { type FC , useEffect } from "react" ;
14
+ import type { FC } from "react" ;
16
15
import { Helmet } from "react-helmet-async" ;
17
16
import { useQueries } from "react-query" ;
18
17
import { useParams } from "react-router-dom" ;
@@ -21,9 +20,6 @@ import { pageTitle } from "utils/page";
21
20
import { useOrganizationSettings } from "../ManagementSettingsLayout" ;
22
21
import { IdpSyncHelpTooltip } from "./IdpSyncHelpTooltip" ;
23
22
import 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" ;
27
23
28
24
export const IdpSyncPage : FC = ( ) => {
29
25
const { organization : organizationName } = useParams ( ) as {
@@ -47,14 +43,6 @@ export const IdpSyncPage: FC = () => {
47
43
return < EmptyState message = "Organization not found" /> ;
48
44
}
49
45
50
- // if (
51
- // groupsQuery.isLoading ||
52
- // groupIdpSyncSettingsQuery.isLoading ||
53
- // roleIdpSyncSettingsQuery.isLoading
54
- // ) {
55
- // return <Loader />;
56
- // }
57
-
58
46
const error =
59
47
groupIdpSyncSettingsQuery . error ||
60
48
roleIdpSyncSettingsQuery . error ||
0 commit comments