Skip to content

Commit

Permalink
fix content fetch for legal pages (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
kne42 authored Dec 6, 2023
1 parent b56e1b1 commit 77b620a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { MdxContent } from 'app/components/MDX'
import { getLocalFileContent } from 'app/utils/repo.server'
import { getRepoFileContentResponse } from 'app/utils/repo.server'

export async function loader() {
return getLocalFileContent('website-docs/data-submission-policy.mdx')
return getRepoFileContentResponse('website-docs/data-submission-policy.mdx')
}

export default function DataSubmissionPolicyPage() {
Expand Down
4 changes: 2 additions & 2 deletions frontend/packages/data-portal/app/routes/privacy.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { MdxContent } from 'app/components/MDX'
import { getLocalFileContent } from 'app/utils/repo.server'
import { getRepoFileContentResponse } from 'app/utils/repo.server'

export async function loader() {
return getLocalFileContent('website-docs/privacy-policy.mdx')
return getRepoFileContentResponse('website-docs/privacy-policy.mdx')
}

export default function PrivacyPage() {
Expand Down

0 comments on commit 77b620a

Please sign in to comment.