Skip to content

Commit

Permalink
feat(license): Fix license header for license files
Browse files Browse the repository at this point in the history
Signed-off-by: tuannn2 <[email protected]>
  • Loading branch information
tuannn2 committed Feb 27, 2024
1 parent 7e5e012 commit 53d3afa
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 23 deletions.
16 changes: 2 additions & 14 deletions src/components/LinkedObligations/LinkedObligations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,31 +9,19 @@
// License-Filename: LICENSE

'use client'
import LicensePayload from '../../object-types/LicensePayload'
import TableLinkedObligations from './TableLinkedObligations/TableLinkedObligations'

interface Props {
data: Array<any>
setData: (data: Array<any>) => void
licensePayload?: LicensePayload
setLicensePayload?: React.Dispatch<React.SetStateAction<LicensePayload>>
data?: Array<any>
}

const LinkedObligations = ({ data, setData, licensePayload, setLicensePayload }: Props) => {
const setObligationIdToLicensePayLoad = (obligationIds: Array<string>) => {
setLicensePayload({
...licensePayload,
obligationDatabaseIds: obligationIds,
})
}
const LinkedObligations = ({ data }: Props) => {

return (
<div className='col' style={{ fontSize: '0.875rem' }}>
<div>
<TableLinkedObligations
data={data}
setData={setData}
setObligationIdToLicensePayLoad={setObligationIdToLicensePayLoad}
/>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/object-types/LicenseDetail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions src/object-types/LicensePayload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
6 changes: 3 additions & 3 deletions src/object-types/Obligation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53d3afa

Please sign in to comment.