0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

refactor(console): swap sms and email connector (#1387)

This commit is contained in:
Gao Sun 2022-07-03 23:08:38 +08:00 committed by GitHub
parent f3b3397d93
commit 10461c48b4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -118,19 +118,19 @@ const Connectors = () => {
)} )}
{!isLoading && !isSocial && ( {!isLoading && !isSocial && (
<ConnectorRow <ConnectorRow
connectors={emailConnector ? [emailConnector] : []} connectors={smsConnector ? [smsConnector] : []}
type={ConnectorType.Email} type={ConnectorType.SMS}
onClickSetup={() => { onClickSetup={() => {
setCreateType(ConnectorType.Email); setCreateType(ConnectorType.SMS);
}} }}
/> />
)} )}
{!isLoading && !isSocial && ( {!isLoading && !isSocial && (
<ConnectorRow <ConnectorRow
connectors={smsConnector ? [smsConnector] : []} connectors={emailConnector ? [emailConnector] : []}
type={ConnectorType.SMS} type={ConnectorType.Email}
onClickSetup={() => { onClickSetup={() => {
setCreateType(ConnectorType.SMS); setCreateType(ConnectorType.Email);
}} }}
/> />
)} )}