Skip to content

Commit

Permalink
Merge pull request binary-com#63 from ahmadtaimoor-deriv/f_contract_d…
Browse files Browse the repository at this point in the history
…etails

chore: removing unused import
  • Loading branch information
akmal-deriv committed Jun 13, 2024
2 parents 6b36f26 + 93f0e84 commit 8f38188
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
WS,
hasContractEntered,
isForwardStarting,
isAccumulatorContract,
} from '@deriv/shared';
import { getContractDetailsConfig } from 'AppV2/Utils/contract-details-config';

Expand Down Expand Up @@ -89,6 +90,7 @@ jest.mock('@deriv/shared', () => ({
useWS: jest.fn(),
hasContractEntered: jest.fn(),
isForwardStarting: jest.fn(),
isAccumulatorContract: jest.fn(),
WS: {
contractUpdateHistory: jest.fn(),
},
Expand Down Expand Up @@ -142,6 +144,7 @@ describe('ContractDetails', () => {
(isOpen as jest.Mock).mockReturnValue(true);
(hasContractEntered as jest.Mock).mockReturnValue(true);
(isForwardStarting as jest.Mock).mockReturnValue(true);
(isAccumulatorContract as jest.Mock).mockReturnValue(false);
(useWS as jest.Mock).mockReturnValue({
send: jest.fn(),
subscribe: jest.fn(),
Expand Down
4 changes: 1 addition & 3 deletions packages/trader/src/AppV2/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@ import TraderProviders from '../trader-providers';
import { ReportsStoreProvider } from '../../../reports/src/Stores/useReportsStores';
import { NotificationsProvider } from '@deriv-com/quill-ui';
import 'Sass/app.scss';
import ContractDetails from './Containers/ContractDetails';
import '@deriv-com/quill-tokens/dist/quill.css';
import { useLocation } from 'react-router';
import Notifications from './Containers/Notifications';
import Router from './Routes/router';

Expand All @@ -26,7 +24,7 @@ const App = ({ passthrough }: Apptypes) => {
React.useEffect(() => {
return () => root_store.ui.setPromptHandler(false);
}, [root_store]);
const location = useLocation();

return (
<TraderProviders store={root_store}>
<ReportsStoreProvider>
Expand Down

0 comments on commit 8f38188

Please sign in to comment.