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 && (
<ConnectorRow
connectors={emailConnector ? [emailConnector] : []}
type={ConnectorType.Email}
connectors={smsConnector ? [smsConnector] : []}
type={ConnectorType.SMS}
onClickSetup={() => {
setCreateType(ConnectorType.Email);
setCreateType(ConnectorType.SMS);
}}
/>
)}
{!isLoading && !isSocial && (
<ConnectorRow
connectors={smsConnector ? [smsConnector] : []}
type={ConnectorType.SMS}
connectors={emailConnector ? [emailConnector] : []}
type={ConnectorType.Email}
onClickSetup={() => {
setCreateType(ConnectorType.SMS);
setCreateType(ConnectorType.Email);
}}
/>
)}