File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,35 +4,15 @@ import BrandHeader from "../../components/BrandHeader/brandHeader";
44import { getPrivacyPolicyContent } from "../../libs/legal" ;
55import privacyPolicy from "./privacyPolicy.module.css" ;
66import { useRouter } from "next/router" ;
7+ import CommonHead from "./commonHead" ;
78
89export default function PrivacyPolicy ( props ) {
910 const router = useRouter ( ) ;
1011
11- const commonHead = (
12- < Head >
13- < link
14- href = "https://cdn.jsdelivr.net/gh/Borumer/Flytrap@1cca457/css/sub.css"
15- rel = "stylesheet"
16- type = "text/css"
17- />
18- < link
19- href = "https://cdn.jsdelivr.net/gh/Borumer/Flytrap@1cca457/legal/legal.css"
20- rel = "stylesheet"
21- type = "text/css"
22- />
23- < link
24- href = "https://fonts.googleapis.com/css2?family=Odibee+Sans& display = swap "
25- rel = "stylesheet"
26- />
27-
28- < title > Borum Jot Privacy Policy</ title >
29- </ Head >
30- ) ;
31-
3212 if ( router . query . showDocumentOnly ) {
3313 return (
3414 < div className = { privacyPolicy . documentOnlyContainer } >
35- { commonHead }
15+ < CommonHead />
3616 < Head >
3717 < link rel = "icon" href = "/images/favicon/favicon.ico" />
3818 </ Head >
@@ -47,7 +27,7 @@ export default function PrivacyPolicy(props) {
4727
4828 return (
4929 < Layout >
50- { commonHead }
30+ < CommonHead />
5131
5232 < main >
5333 < BrandHeader />
Original file line number Diff line number Diff line change 1+ import {
2+ legalDocumentContent ,
3+ documentOnlyContainer ,
4+ } from "../privacyPolicy.module.css" ;
5+ import CommonHead from "../commonHead" ;
6+ import Head from "next/head" ;
7+ import { getPrivacyPolicyContent } from "../../../libs/legal" ;
8+
9+ export default function AndroidApp ( props ) {
10+ return (
11+ < div className = { documentOnlyContainer } >
12+ < CommonHead />
13+ < Head >
14+ < link rel = "icon" href = "/images/favicon/favicon.ico" />
15+ </ Head >
16+
17+ < article
18+ className = { legalDocumentContent }
19+ dangerouslySetInnerHTML = { { __html : props . content } }
20+ />
21+ </ div >
22+ ) ;
23+ }
24+
25+ export async function getStaticProps ( ) {
26+ return {
27+ props : {
28+ content : await getPrivacyPolicyContent ( ) ,
29+ } ,
30+ } ;
31+ }
32+
Original file line number Diff line number Diff line change 1+ import Head from "next/head" ;
2+
3+ export default function CommonHead ( props ) {
4+ return (
5+ < Head >
6+ < link
7+ href = "https://cdn.jsdelivr.net/gh/Borumer/Flytrap@1cca457/css/sub.css"
8+ rel = "stylesheet"
9+ type = "text/css"
10+ />
11+ < link
12+ href = "https://cdn.jsdelivr.net/gh/Borumer/Flytrap@1cca457/legal/legal.css"
13+ rel = "stylesheet"
14+ type = "text/css"
15+ />
16+ < link
17+ href = "https://fonts.googleapis.com/css2?family=Odibee+Sans& display = swap "
18+ rel = "stylesheet"
19+ />
20+
21+ < title > Borum Jot Privacy Policy</ title >
22+ </ Head >
23+ ) ;
24+ }
You can’t perform that action at this time.
0 commit comments