Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

🐛 fix(oauth): render the built-in consent loader without base-ui Result (#20095)

Innei8202e2e3a9fa
diff --git a/src/features/Auth/OAuthConsent/Consent/BuiltinConsent.tsx b/src/features/Auth/OAuthConsent/Consent/BuiltinConsent.tsx
index 984f2d83d51..66f566f07d2 100644
--- a/src/features/Auth/OAuthConsent/Consent/BuiltinConsent.tsx
+++ b/src/features/Auth/OAuthConsent/Consent/BuiltinConsent.tsx
@@ -1,6 +1,7 @@
'use client';
-import { Result, Text } from '@lobehub/ui/base-ui';
+import { Flexbox } from '@lobehub/ui';
+import { Text } from '@lobehub/ui/base-ui';
import { memo, useEffect, useRef } from 'react';
import { useTranslation } from 'react-i18next';
@@ -21,11 +22,10 @@ const BuiltinConsent = memo<BuiltinConsentProps>(({ uid }) => {
return (
<>
- <Result
- icon={<BrandLoading debugId={'ouidc'} />}
- status="success"
- title={<Text fontSize={14}>{t('consent.redirecting')}</Text>}
- />
+ <Flexbox align={'center'} gap={12}>
+ <BrandLoading debugId={'ouidc'} />
+ <Text fontSize={14}>{t('consent.redirecting')}</Text>
+ </Flexbox>
<form action="/oidc/consent" method="post" ref={formRef} style={{ display: 'none' }}>
<input name="uid" type="hidden" value={uid} />
<input name="consent" type="hidden" value="accept" />