diff --git a/packages/bot-web-ui/src/components/dashboard/dashboard-component/load-bot-preview/bot-preview.tsx b/packages/bot-web-ui/src/components/dashboard/dashboard-component/load-bot-preview/bot-preview.tsx index 8131c5d5d364..6f769f33e852 100644 --- a/packages/bot-web-ui/src/components/dashboard/dashboard-component/load-bot-preview/bot-preview.tsx +++ b/packages/bot-web-ui/src/components/dashboard/dashboard-component/load-bot-preview/bot-preview.tsx @@ -1,5 +1,5 @@ import React, { RefObject } from 'react'; -import WorkspaceControl from './workspace-control'; +import WorkspaceControl from '../../../load-modal/workspace-control'; type TBotPreview = { id_ref: RefObject; diff --git a/packages/bot-web-ui/src/components/dashboard/dashboard-component/load-bot-preview/workspace-control.tsx b/packages/bot-web-ui/src/components/dashboard/dashboard-component/load-bot-preview/workspace-control.tsx deleted file mode 100644 index df38f5715cda..000000000000 --- a/packages/bot-web-ui/src/components/dashboard/dashboard-component/load-bot-preview/workspace-control.tsx +++ /dev/null @@ -1,27 +0,0 @@ -import React from 'react'; -import { Icon } from '@deriv/components'; -import { observer } from '@deriv/stores'; -import { useDBotStore } from 'Stores/useDBotStore'; - -const WorkspaceControl = observer(() => { - const { dashboard } = useDBotStore(); - const { onZoomInOutClick } = dashboard; - return ( -
- onZoomInOutClick(true)} - /> - onZoomInOutClick(false)} - /> -
- ); -}); - -export default WorkspaceControl;