feat(core): add subscribe link (#6610)

This commit is contained in:
EYHN
2024-04-18 13:28:32 +00:00
parent 5437c6567b
commit 09832dc940
11 changed files with 216 additions and 48 deletions
@@ -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]
);