mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-12 01:12:19 +00:00
rm react dep in next
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
"use server";
|
||||
import { ReactNode } from "react";
|
||||
|
||||
import {
|
||||
@@ -7,12 +8,12 @@ import {
|
||||
IdentityProvider,
|
||||
IdentityProviderType,
|
||||
} from "@zitadel/server";
|
||||
import {
|
||||
SignInWithGitlab,
|
||||
SignInWithAzureAD,
|
||||
SignInWithGoogle,
|
||||
SignInWithGithub,
|
||||
} from "@zitadel/react";
|
||||
// import {
|
||||
// SignInWithGitlab,
|
||||
// SignInWithAzureAD,
|
||||
// SignInWithGoogle,
|
||||
// SignInWithGithub,
|
||||
// } from "@zitadel/react";
|
||||
|
||||
export interface SignInWithIDPProps {
|
||||
children?: ReactNode;
|
||||
@@ -36,17 +37,18 @@ function getIdentityProviders(
|
||||
});
|
||||
}
|
||||
|
||||
export async function SignInWithIDP(props: SignInWithIDPProps) {
|
||||
const identityProviders = await getIdentityProviders(
|
||||
props.server,
|
||||
props.orgId
|
||||
);
|
||||
export function SignInWithIDP(props: SignInWithIDPProps) {
|
||||
console.log(props.server);
|
||||
// const identityProviders = await getIdentityProviders(
|
||||
// props.server,
|
||||
// props.orgId
|
||||
// );
|
||||
|
||||
console.log(identityProviders);
|
||||
// console.log(identityProviders);
|
||||
|
||||
return (
|
||||
<div className="ztdl-next-flex ztdl-next-flex-col ztdl-next-w-full ztdl-next-space-y-2 ztdl-next-text-sm">
|
||||
{identityProviders &&
|
||||
{/* {identityProviders &&
|
||||
identityProviders.map((idp, i) => {
|
||||
switch (idp.type) {
|
||||
case IdentityProviderType.IDENTITY_PROVIDER_TYPE_GITHUB:
|
||||
@@ -94,7 +96,7 @@ export async function SignInWithIDP(props: SignInWithIDPProps) {
|
||||
default:
|
||||
return <div>{idp.name}</div>;
|
||||
}
|
||||
})}
|
||||
})} */}
|
||||
{props.children}
|
||||
</div>
|
||||
);
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
{
|
||||
"extends": ["//"],
|
||||
"pipeline": {
|
||||
"dev": {
|
||||
"dependsOn": ["@zitadel/react#build"]
|
||||
},
|
||||
"build": {
|
||||
"outputs": ["dist/**"],
|
||||
"dependsOn": ["@zitadel/react#build", "@zitadel/server#build"]
|
||||
|
||||
Reference in New Issue
Block a user