Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
gitpod-io
GitHub Repository: gitpod-io/gitpod
Path: blob/main/components/dashboard/src/teams/git-integrations/GitIntegrations.tsx
2501 views
1
/**
2
* Copyright (c) 2023 Gitpod GmbH. All rights reserved.
3
* Licensed under the GNU Affero General Public License (AGPL).
4
* See License.AGPL.txt in the project root for license information.
5
*/
6
7
import { FunctionComponent } from "react";
8
import { SpinnerLoader } from "../../components/Loader";
9
import { useOrgAuthProvidersQuery } from "../../data/auth-providers/org-auth-providers-query";
10
import { GitIntegrationsList } from "./GitIntegrationsList";
11
12
export const GitIntegrations: FunctionComponent = () => {
13
const { data, isLoading } = useOrgAuthProvidersQuery();
14
15
if (isLoading) {
16
return <SpinnerLoader />;
17
}
18
19
return <GitIntegrationsList providers={data || []} />;
20
};
21
22