-
- {JSON.stringify(application, null, 2)}
-
-
-
- {debug ? JSON.stringify(companyRoleAgreementData, null, 2) : '{...}'}
-
-
- )
-}
diff --git a/src/components/overlays/OSPConsent/index.tsx b/src/components/overlays/OSPConsent/index.tsx
deleted file mode 100644
index 2c50bbe47..000000000
--- a/src/components/overlays/OSPConsent/index.tsx
+++ /dev/null
@@ -1,154 +0,0 @@
-/********************************************************************************
- * Copyright (c) 2023 BMW Group AG
- * Copyright (c) 2023 Contributors to the Eclipse Foundation
- *
- * See the NOTICE file(s) distributed with this work for additional
- * information regarding copyright ownership.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Apache License, Version 2.0 which is available at
- * https://www.apache.org/licenses/LICENSE-2.0.
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations
- * under the License.
- *
- * SPDX-License-Identifier: Apache-2.0
- ********************************************************************************/
-
-import { Trans, useTranslation } from 'react-i18next'
-import {
- Button,
- DialogActions,
- DialogContent,
- DialogHeader,
- LoadingButton,
- Typography,
-} from '@catena-x/portal-shared-components'
-import { useDispatch } from 'react-redux'
-import { closeOverlay } from 'features/control/overlay'
-import { useEffect, useState } from 'react'
-import { OSPConsentContent } from './OSPConsentContent'
-import { error, success } from 'services/NotifyService'
-import {
- type PartnerRegistrationConsent,
- useFetchCompanyRoleAgreementDataQuery,
- useRegisterPartnerConsentMutation,
- emptyPartnerRegistrationConsent,
- useFetchRegistrationApplicationsQuery,
- useFetchRegistrationApplicationDataQuery,
- REGISTRATION_APPLICATION_STATUS,
-} from 'features/admin/networkApiSlice'
-
-export const OSPApplicationConsent = ({ id }: { id: string }) => {
- const { t } = useTranslation('idp')
- const dispatch = useDispatch()
- const application = useFetchRegistrationApplicationDataQuery(id).data
- const companyRoleAgreementData = useFetchCompanyRoleAgreementDataQuery().data
- const [registerPartnerConsent] = useRegisterPartnerConsentMutation()
- const [consent, setConsent] = useState