forked from baron/baron-sso
code check 오류 수정
This commit is contained in:
@@ -40,13 +40,7 @@ function LoginPage() {
|
||||
returnTo,
|
||||
},
|
||||
});
|
||||
}, [
|
||||
auth,
|
||||
auth.activeNavigator,
|
||||
auth.isLoading,
|
||||
returnTo,
|
||||
shouldAutoLogin,
|
||||
]);
|
||||
}, [auth, auth.activeNavigator, auth.isLoading, returnTo, shouldAutoLogin]);
|
||||
|
||||
const handleSSOLogin = async () => {
|
||||
try {
|
||||
|
||||
@@ -150,7 +150,18 @@ function ClientDetailsPage() {
|
||||
);
|
||||
}
|
||||
|
||||
if (isLoading && !data) {
|
||||
return (
|
||||
<div className="p-8 text-center">
|
||||
{t("msg.dev.clients.details.loading", "Loading app details...")}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
const client = data?.client;
|
||||
if (!client) {
|
||||
return null;
|
||||
}
|
||||
const endpointValues = data?.endpoints ?? {
|
||||
discovery: "-",
|
||||
issuer: "-",
|
||||
@@ -469,6 +480,7 @@ function ClientDetailsPage() {
|
||||
)}
|
||||
rows={5}
|
||||
value={redirectUris}
|
||||
onFocus={(e) => e.currentTarget.select()}
|
||||
onChange={(e) => {
|
||||
redirectUrisHydratedRef.current = true;
|
||||
setRedirectUris(e.target.value);
|
||||
|
||||
@@ -258,7 +258,7 @@ function ClientGeneralPage() {
|
||||
return;
|
||||
}
|
||||
setLogoPreviewStatus("loading");
|
||||
}, [hasLogoUrl, hasValidLogoUrl, trimmedLogoUrl]);
|
||||
}, [hasLogoUrl, hasValidLogoUrl]);
|
||||
|
||||
const handleSecurityProfileChange = (profile: SecurityProfile) => {
|
||||
setClientType(profile);
|
||||
@@ -814,7 +814,9 @@ function ClientGeneralPage() {
|
||||
<div
|
||||
className={cn(
|
||||
"flex h-20 w-20 shrink-0 items-center justify-center rounded-lg border-2 border-dashed",
|
||||
hasLogoUrl && hasValidLogoUrl && logoPreviewStatus !== "error"
|
||||
hasLogoUrl &&
|
||||
hasValidLogoUrl &&
|
||||
logoPreviewStatus !== "error"
|
||||
? "bg-white"
|
||||
: "bg-muted/40",
|
||||
logoPreviewStatus === "error"
|
||||
@@ -922,6 +924,7 @@ function ClientGeneralPage() {
|
||||
</Label>
|
||||
<Textarea
|
||||
value={redirectUris}
|
||||
onFocus={(e) => e.currentTarget.select()}
|
||||
onChange={(e) => setRedirectUris(e.target.value)}
|
||||
placeholder={t(
|
||||
"ui.dev.clients.general.redirect.placeholder",
|
||||
|
||||
Reference in New Issue
Block a user