Skip to content

Commit

Permalink
feat: terms and privacy pages ssr
Browse files Browse the repository at this point in the history
  • Loading branch information
onim-at committed Oct 27, 2024
1 parent 916c7f2 commit cb1e420
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions src/routes/_.privacy.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import Main from 'src/pages/common/Layout/Main'
import PrivacyPolicy from 'src/pages/policy/PrivacyPolicy'
import { SeoTagsUpdateComponent } from 'src/utils/seo'
import { generateTags } from 'src/utils/seo.utils'

export async function clientLoader() {
return null
}
export const meta = generateTags('Privacy Policy')

export default function Index() {
return (
<Main style={{ flex: 1 }}>
<SeoTagsUpdateComponent title="Privacy Policy" />
<PrivacyPolicy />
</Main>
)
Expand Down
7 changes: 2 additions & 5 deletions src/routes/_.terms.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import Main from 'src/pages/common/Layout/Main'
import TermsPolicy from 'src/pages/policy/TermsPolicy'
import { SeoTagsUpdateComponent } from 'src/utils/seo'
import { generateTags } from 'src/utils/seo.utils'

export async function clientLoader() {
return null
}
export const meta = generateTags('Terms of Use')

export default function Index() {
return (
<Main style={{ flex: 1 }}>
<SeoTagsUpdateComponent title="Terms of Use" />
<TermsPolicy />
</Main>
)
Expand Down

0 comments on commit cb1e420

Please sign in to comment.