Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b285e11

Browse files
committed
chore: cleanup
1 parent 5b4e76c commit b285e11

File tree

2 files changed

+5
-17
lines changed

2 files changed

+5
-17
lines changed

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

+3-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import LaunchOutlined from "@mui/icons-material/LaunchOutlined";
22
import Button from "@mui/material/Button";
3-
import { getErrorMessage } from "api/errors";
43
import { groupsByOrganization } from "api/queries/groups";
54
import {
65
groupIdpSyncSettings,
76
roleIdpSyncSettings,
87
} from "api/queries/organizations";
8+
import { ChooseOne, Cond } from "components/Conditionals/ChooseOne";
99
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";
1211
import { SettingsHeader } from "components/SettingsHeader/SettingsHeader";
1312
import { Stack } from "components/Stack/Stack";
1413
import { useFeatureVisibility } from "modules/dashboard/useFeatureVisibility";
15-
import { type FC, useEffect } from "react";
14+
import type { FC } from "react";
1615
import { Helmet } from "react-helmet-async";
1716
import { useQueries } from "react-query";
1817
import { useParams } from "react-router-dom";
@@ -21,9 +20,6 @@ import { pageTitle } from "utils/page";
2120
import { useOrganizationSettings } from "../ManagementSettingsLayout";
2221
import { IdpSyncHelpTooltip } from "./IdpSyncHelpTooltip";
2322
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";
2723

2824
export 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 ||

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ import type {
1414
Organization,
1515
RoleSyncSettings,
1616
} from "api/typesGenerated";
17+
import { ErrorAlert } from "components/Alert/ErrorAlert";
1718
import { ChooseOne, Cond } from "components/Conditionals/ChooseOne";
1819
import { EmptyState } from "components/EmptyState/EmptyState";
20+
import { Loader } from "components/Loader/Loader";
1921
import { Stack } from "components/Stack/Stack";
2022
import { StatusIndicator } from "components/StatusIndicator/StatusIndicator";
2123
import {
@@ -29,8 +31,6 @@ import { MONOSPACE_FONT_FAMILY } from "theme/constants";
2931
import { docs } from "utils/docs";
3032
import { ExportPolicyButton } from "./ExportPolicyButton";
3133
import { IdpPillList } from "./IdpPillList";
32-
import { ErrorAlert } from "components/Alert/ErrorAlert";
33-
import { Loader } from "components/Loader/Loader";
3434

3535
interface IdpSyncPageViewProps {
3636
groupSyncSettings: GroupSyncSettings | undefined;

0 commit comments

Comments
 (0)