mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-25 14:28:51 +08:00
feat(core): add subscribe link (#6610)
This commit is contained in:
@@ -137,13 +137,20 @@ export function useNavigateHelper() {
|
||||
);
|
||||
const jumpToSignIn = useCallback(
|
||||
(
|
||||
redirectUri?: string,
|
||||
logic: RouteLogic = RouteLogic.PUSH,
|
||||
otherOptions?: Omit<NavigateOptions, 'replace'>
|
||||
) => {
|
||||
return navigate('/signIn', {
|
||||
replace: logic === RouteLogic.REPLACE,
|
||||
...otherOptions,
|
||||
});
|
||||
return navigate(
|
||||
'/signIn' +
|
||||
(redirectUri
|
||||
? `?redirect_uri=${encodeURIComponent(redirectUri)}`
|
||||
: ''),
|
||||
{
|
||||
replace: logic === RouteLogic.REPLACE,
|
||||
...otherOptions,
|
||||
}
|
||||
);
|
||||
},
|
||||
[navigate]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user