Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

actions.web.ts 526B

123456789101112131415161718
  1. import { maybeRedirectToWelcomePage } from '../app/actions.web';
  2. import { IStore } from '../app/types';
  3. export * from './actions.any';
  4. /**
  5. * Cancels the ongoing knocking and abandons the join flow.
  6. *
  7. * @returns {Function}
  8. */
  9. export function cancelKnocking() {
  10. return async (dispatch: IStore['dispatch']) => {
  11. // when we are redirecting the library should handle any
  12. // unload and clean of the connection.
  13. APP.API.notifyReadyToClose();
  14. dispatch(maybeRedirectToWelcomePage());
  15. };
  16. }