feat(useAuthenticateApp): early exit connection creation at blocked pop-up
This commit is contained in:
@@ -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"
|
||||
|
Reference in New Issue
Block a user