diff --git a/packages/client/src/v2-events/features/workqueues/index.tsx b/packages/client/src/v2-events/features/workqueues/index.tsx index 281f414278..6838534ec5 100644 --- a/packages/client/src/v2-events/features/workqueues/index.tsx +++ b/packages/client/src/v2-events/features/workqueues/index.tsx @@ -8,8 +8,6 @@ * * Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS. */ -import { push } from 'connected-react-router' - import React from 'react' import { @@ -29,10 +27,10 @@ import { import { DeclarationIconSmall } from '@opencrvs/components/lib/icons/DeclarationIconSmall' import { Plus } from '@opencrvs/components/src/icons' import { V2_EVENTS_ROUTE } from '@client/v2-events/routes' -import { useDispatch } from 'react-redux' +import { useNavigate } from 'react-router-dom' export const Workqueues = () => { - const dispatch = useDispatch() + const navigate = useNavigate() return ( {