0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-10 22:22:45 -05:00

fix: the destination of switch to another passwordless connector (#3437)

This commit is contained in:
Darcy Ye 2023-03-16 15:31:50 +08:00 committed by GitHub
parent 658d905fe0
commit 36a88abc9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,6 +36,7 @@ import ConnectorTabs from './components/ConnectorTabs';
import ConnectorTypeName from './components/ConnectorTypeName';
import * as styles from './index.module.scss';
// TODO: refactor path-related operation utils in both Connectors and ConnectorDetails page
const getConnectorsPathname = (isSocial: boolean) =>
`/connectors/${isSocial ? ConnectorsTabs.Social : ConnectorsTabs.Passwordless}`;
@ -202,7 +203,7 @@ const ConnectorDetails = () => {
setIsSetupOpen(false);
if (connectorId) {
navigate(`${getConnectorsPathname(isSocial)}/${connectorId}`);
navigate(`${getConnectorsPathname(isSocial)}/guide/${connectorId}`);
}
}}
/>