diff --git a/src/pages/view/TitleBar/ActionsBar.js b/src/pages/view/TitleBar/ActionsBar.js index 59b7c53fa..de4aab782 100644 --- a/src/pages/view/TitleBar/ActionsBar.js +++ b/src/pages/view/TitleBar/ActionsBar.js @@ -1,7 +1,6 @@ +import { SharingDialog } from '@dhis2-ui/sharing-dialog' import { useDataEngine, useAlert } from '@dhis2/app-runtime' -import { useD2 } from '@dhis2/app-runtime-adapter-d2' import i18n from '@dhis2/d2-i18n' -import { SharingDialog } from '@dhis2-ui/sharing-dialog' import { Button, FlyoutMenu, MenuItem, colors, IconMore24 } from '@dhis2/ui' import PropTypes from 'prop-types' import React, { useState } from 'react' @@ -36,7 +35,6 @@ const ViewActions = ({ const [moreOptionsIsOpen, setMoreOptionsIsOpen] = useState(false) const [sharingDialogIsOpen, setSharingDialogIsOpen] = useState(false) const [redirectUrl, setRedirectUrl] = useState(null) - const { d2 } = useD2() const dataEngine = useDataEngine() const warningAlert = useAlert(({ msg }) => msg, {