feat(useAuthenticateApp): early exit connection creation at blocked pop-up

This commit is contained in:
Ali BARIN
2024-09-05 12:08:32 +00:00
parent 0c53ee8460
commit 297543f9dd
2 changed files with 15 additions and 19 deletions

View File

@@ -31,7 +31,7 @@ function AddAppConnection(props) {
const hasConnection = Boolean(connectionId);
const useShared = searchParams.get('shared') === 'true';
const appAuthClientId = searchParams.get('appAuthClientId') || undefined;
const { authenticate, isPopupBlocked } = useAuthenticateApp({
const { authenticate } = useAuthenticateApp({
appKey: key,
connectionId,
appAuthClientId,
@@ -134,12 +134,6 @@ function AddAppConnection(props) {
</Alert>
)}
{isPopupBlocked && (
<Alert severity="warning" sx={{ fontWeight: 300, mt: 1 }}>
{formatMessage('addAppConnection.popupReminder')}
</Alert>
)}
{error && (
<Alert
severity="error"