diff --git a/src/components/LinkedObligations/LinkedObligations.tsx b/src/components/LinkedObligations/LinkedObligations.tsx index 9d591bc91..1ae1b81f7 100644 --- a/src/components/LinkedObligations/LinkedObligations.tsx +++ b/src/components/LinkedObligations/LinkedObligations.tsx @@ -9,31 +9,19 @@ // License-Filename: LICENSE 'use client' -import LicensePayload from '../../object-types/LicensePayload' import TableLinkedObligations from './TableLinkedObligations/TableLinkedObligations' interface Props { - data: Array - setData: (data: Array) => void - licensePayload?: LicensePayload - setLicensePayload?: React.Dispatch> + data?: Array } -const LinkedObligations = ({ data, setData, licensePayload, setLicensePayload }: Props) => { - const setObligationIdToLicensePayLoad = (obligationIds: Array) => { - setLicensePayload({ - ...licensePayload, - obligationDatabaseIds: obligationIds, - }) - } +const LinkedObligations = ({ data }: Props) => { return (
diff --git a/src/object-types/LicenseDetail.ts b/src/object-types/LicenseDetail.ts index b00b0817b..562e7e981 100644 --- a/src/object-types/LicenseDetail.ts +++ b/src/object-types/LicenseDetail.ts @@ -3,10 +3,10 @@ // This program and the accompanying materials are made // available under the terms of the Eclipse Public License 2.0 -// which is available at https?://www.eclipse.org/legal/epl-2.0/ +// which is available at https://www.eclipse.org/legal/epl-2.0/ -// SPDX-License-Identifier?: EPL-2.0 -// License-Filename?: LICENSE +// SPDX-License-Identifier: EPL-2.0 +// License-Filename: LICENSE import Obligation from './Obligation' export default interface LicenseDetail { diff --git a/src/object-types/LicensePayload.ts b/src/object-types/LicensePayload.ts index 38f876d2f..d3b32a9b6 100644 --- a/src/object-types/LicensePayload.ts +++ b/src/object-types/LicensePayload.ts @@ -3,10 +3,10 @@ // This program and the accompanying materials are made // available under the terms of the Eclipse Public License 2.0 -// which is available at https?://www.eclipse.org/legal/epl-2.0/ +// which is available at https://www.eclipse.org/legal/epl-2.0/ -// SPDX-License-Identifier?: EPL-2.0 -// License-Filename?: LICENSE +// SPDX-License-Identifier: EPL-2.0 +// License-Filename: LICENSE import Obligation from "./Obligation" diff --git a/src/object-types/Obligation.ts b/src/object-types/Obligation.ts index ad678d770..48766e8f0 100644 --- a/src/object-types/Obligation.ts +++ b/src/object-types/Obligation.ts @@ -3,10 +3,10 @@ // This program and the accompanying materials are made // available under the terms of the Eclipse Public License 2.0 -// which is available at https?://www.eclipse.org/legal/epl-2.0/ +// which is available at https://www.eclipse.org/legal/epl-2.0/ -// SPDX-License-Identifier?: EPL-2.0 -// License-Filename?: LICENSE +// SPDX-License-Identifier: EPL-2.0 +// License-Filename: LICENSE export default interface Obligation { id?: string