Skip to content

Commit

Permalink
router
Browse files Browse the repository at this point in the history
  • Loading branch information
thepiyush-303 committed Dec 17, 2024
1 parent 9393d25 commit c3b0981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/meteor/client/views/root/hooks/useEscapeKeyStroke.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { useToastMessageDispatch } from '@rocket.chat/ui-contexts';
import { useToastMessageDispatch, useRouter } from '@rocket.chat/ui-contexts';
import { useEffect } from 'react';
import { useTranslation } from 'react-i18next';

import { useClearUnreadAllMessagesMutation } from './useClearUnreadAllMessagesMutation';
import GenericModal from '../../../components/GenericModal';
import { imperativeModal } from '../../../lib/imperativeModal';
import { router } from '/client/providers/RouterProvider';

export const useEscapeKeyStroke = () => {
const dispatchToastMessage = useToastMessageDispatch();
const { t } = useTranslation();
const router = useRouter();

const clearUnreadAllMessagesMutation = useClearUnreadAllMessagesMutation({
onError: (error) => {
Expand Down

0 comments on commit c3b0981

Please sign in to comment.