mirror of
https://github.com/logto-io/logto.git
synced 2024-12-30 20:33:54 -05:00
fix(ui): native app postMessage listener should be registered properly (#3117)
This commit is contained in:
parent
e7115d797c
commit
bea8a8928e
2 changed files with 2 additions and 2 deletions
|
@ -2,6 +2,7 @@ import type { ConnectorMetadata } from '@logto/schemas';
|
|||
import classNames from 'classnames';
|
||||
|
||||
import SocialLinkButton from '@/components/Button/SocialLinkButton';
|
||||
import useNativeMessageListener from '@/hooks/use-native-message-listener';
|
||||
import useSocial from '@/hooks/use-social';
|
||||
import { getLogoUrl } from '@/utils/logo';
|
||||
|
||||
|
@ -14,6 +15,7 @@ type Props = {
|
|||
|
||||
const SocialSignInList = ({ className, socialConnectors = [] }: Props) => {
|
||||
const { invokeSocialSignIn, theme } = useSocial();
|
||||
useNativeMessageListener();
|
||||
|
||||
return (
|
||||
<div className={classNames(styles.socialLinkList, className)}>
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
import TermsOfUse from '@/containers/TermsOfUse';
|
||||
import useNativeMessageListener from '@/hooks/use-native-message-listener';
|
||||
import useSocial from '@/hooks/use-social';
|
||||
|
||||
import SocialSignInList from './SocialSignInList';
|
||||
|
@ -11,7 +10,6 @@ type Props = {
|
|||
|
||||
const SocialSignIn = ({ className }: Props) => {
|
||||
const { socialConnectors } = useSocial();
|
||||
useNativeMessageListener();
|
||||
|
||||
return (
|
||||
<>
|
||||
|
|
Loading…
Reference in a new issue