Skip to content

Commit

Permalink
CORE-5076: update upload url
Browse files Browse the repository at this point in the history
  • Loading branch information
ekachxaidze98 committed Dec 9, 2024
1 parent b30c579 commit 90fa98d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions templates/sdg/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React, { useState } from 'react'

import { Layout, Section } from '../../design-v2/components'
import styles from './styles.module.scss'
import { Markdown } from '../../components'
import { Markdown, Video } from '../../components'
import FileUpload from '../../components/pdf-upload'

const SdgPageTemplate = ({ data }) => {
Expand All @@ -11,10 +11,7 @@ const SdgPageTemplate = ({ data }) => {
const uploadPdf = async (file, dataProviderId) => {
setRrsPdfLoading(true)
try {
const url = new URL(
'/internal/data-providers/rights-retention-upload-file',
process.env.API_URL
)
const url = new URL('/internal/sdg-upload-file', process.env.API_URL)
const fd = new FormData()
fd.set('file', file)
fd.set('dataProviderId', dataProviderId)
Expand Down Expand Up @@ -64,6 +61,11 @@ const SdgPageTemplate = ({ data }) => {
<Markdown>{data.purpose?.description}</Markdown>
</article>
</Section>
<Video
src="https://www.youtube.com/embed/-gFYNg_8ySQ"
title="test"
tag="p"
/>
</Layout>
)
}
Expand Down

0 comments on commit 90fa98d

Please sign in to comment.