diff --git a/packages/marketplace/src/components/pages/developer-app-detail/__test__/__snapshots__/aside.test.tsx.snap b/packages/marketplace/src/components/pages/developer-app-detail/__test__/__snapshots__/aside.test.tsx.snap index 6562e02dbc..f0b95e2aa1 100644 --- a/packages/marketplace/src/components/pages/developer-app-detail/__test__/__snapshots__/aside.test.tsx.snap +++ b/packages/marketplace/src/components/pages/developer-app-detail/__test__/__snapshots__/aside.test.tsx.snap @@ -114,7 +114,6 @@ exports[`Aside Aside - should match snapshot 1`] = ` }, } } - id="9b6fd5f7-2c15-483d-b925-01b650538e52" pendingRevisions={false} /> @@ -218,7 +217,6 @@ exports[`Aside ManageApp - should match snapshot 1`] = ` }, } } - id="test" pendingRevisions={false} > { mount( - + , ), diff --git a/packages/marketplace/src/components/pages/developer-app-detail/app-detail/app-content/app-content.tsx b/packages/marketplace/src/components/pages/developer-app-detail/app-detail/app-content/app-content.tsx index 837321f023..9c44cafd42 100644 --- a/packages/marketplace/src/components/pages/developer-app-detail/app-detail/app-content/app-content.tsx +++ b/packages/marketplace/src/components/pages/developer-app-detail/app-detail/app-content/app-content.tsx @@ -144,7 +144,7 @@ const AppContent: React.FC = ({ appDetailState }) => { {isMobile && ( <> {renderListedStatus(Boolean(isListed))} - + )} diff --git a/packages/marketplace/src/components/pages/developer-app-detail/aside.tsx b/packages/marketplace/src/components/pages/developer-app-detail/aside.tsx index 8a36a78d5f..01738c6d39 100644 --- a/packages/marketplace/src/components/pages/developer-app-detail/aside.tsx +++ b/packages/marketplace/src/components/pages/developer-app-detail/aside.tsx @@ -32,7 +32,6 @@ interface AsideProps { interface ManageAppProps { pendingRevisions: boolean appDetailState: DeveloperAppDetailState - id: string } export const onCancelSuccess = ({ @@ -89,7 +88,8 @@ export const onBackToAppsButtonClick = (history: History) => { } } -export const ManageApp: React.FC = ({ pendingRevisions, id, appDetailState }) => { +export const ManageApp: React.FC = ({ pendingRevisions, appDetailState }) => { + const id = appDetailState?.data?.id || '' const [isDeleteModalOpen, setIsDeleteModalOpen] = React.useState(false) const [isAppRevisionComparisionModalOpen, setIsAppRevisionComparisionModalOpen] = React.useState(false) @@ -101,8 +101,8 @@ export const ManageApp: React.FC = ({ pendingRevisions, id, appD {isDeleteModalOpen && ( = ({ desktopIntegrationTypes, appDetail const history = useHistory() const { isMobile } = useReactResponsive() const { data } = appDetailState - const { isDirectApi, category, isListed, pendingRevisions, id = '', limitToClientIds = [] } = data as AppDetailModel + const { isDirectApi, category, isListed, pendingRevisions, limitToClientIds = [] } = data as AppDetailModel return (
@@ -190,7 +190,7 @@ export const Aside: React.FC = ({ desktopIntegrationTypes, appDetail {!isMobile && ( <> {renderListedStatus(Boolean(isListed))} - + )}
diff --git a/packages/marketplace/src/components/pages/developer-app-detail/developer-app-detail.tsx b/packages/marketplace/src/components/pages/developer-app-detail/developer-app-detail.tsx index cf2baa8481..b8adad9b53 100644 --- a/packages/marketplace/src/components/pages/developer-app-detail/developer-app-detail.tsx +++ b/packages/marketplace/src/components/pages/developer-app-detail/developer-app-detail.tsx @@ -14,8 +14,6 @@ import { Loader, FormSection, Button } from '@reapit/elements' import AppHeader from '@/components/ui/developer-app-detail/app-header' import AppContent from './app-detail/app-content/app-content' import DeveloperAppDetailButtonGroup from '@/components/ui/developer-app-detail/developer-app-detail-button-group' - -import AppDelete from '@/components/ui/app-delete' import AppInstallations from '@/components/ui/app-installations/app-installations-modal' import routes from '@/constants/routes' @@ -82,7 +80,6 @@ export const onBackToAppsButtonClick = (history: History) => { const DeveloperAppDetail: React.FC = () => { const history = useHistory() - const [isDeleteModalOpen, setIsDeleteModalOpen] = React.useState(false) const [isInstallationsModalOpen, setIsInstallationsModalOpen] = React.useState(false) const [isAppRevisionComparisionModalOpen, setIsAppRevisionComparisionModalOpen] = React.useState(false) const { isMobile } = useReactResponsive() @@ -119,15 +116,6 @@ const DeveloperAppDetail: React.FC = () => { )} - {isDeleteModalOpen && ( - - )} {isInstallationsModalOpen && (