@@ -9,6 +9,7 @@ import styled from "styled-components";
99import { Container } from "../atoms/container" ;
1010import { blogPrimaryColor } from "../blog-colors" ;
1111import { FC , ReactNode } from "react" ;
12+ import { pageOpenedInApp } from "../../../logic/app" ;
1213
1314const Footer = loadable ( ( ) => import ( `../organism/footer` ) ) ;
1415
@@ -21,20 +22,6 @@ const ContentContainerApp = styled(Container)`
2122 flex: 1 0 auto;
2223` ;
2324
24- export interface BlogPageProps {
25- location : CurrentLocation ;
26- author : string ;
27- ogPageType : OgPageType ;
28- ogImage : string ;
29- trackingCategory : string ;
30- pageOpenedInApp : boolean ;
31- customTitle ?: string ;
32- description ?: string ;
33- date ?: string ;
34- big ?: boolean ;
35- children ?: ReactNode ;
36- }
37-
3825const StandardLayout : FC < {
3926 location : CurrentLocation ;
4027 trackingCategory : string ;
@@ -57,20 +44,31 @@ const StandardLayout: FC<{
5744 ) ;
5845} ;
5946
47+ export interface BlogPageProps {
48+ location : CurrentLocation ;
49+ author : string ;
50+ ogPageType : OgPageType ;
51+ ogImage : string ;
52+ trackingCategory : string ;
53+ customTitle ?: string ;
54+ description ?: string ;
55+ date ?: string ;
56+ big ?: boolean ;
57+ children ?: ReactNode ;
58+ }
59+
6060export const BlogPageTemplate : FC < BlogPageProps > = ( {
6161 children,
6262 location,
6363 author,
6464 ogPageType,
6565 ogImage,
6666 trackingCategory,
67- pageOpenedInApp,
6867 customTitle,
6968 description,
7069 date,
7170 big = false ,
7271} ) => {
73- console . log ( "from app" , pageOpenedInApp ) ;
7472 return (
7573 < BlogThemePage >
7674 < Head
@@ -82,7 +80,7 @@ export const BlogPageTemplate: FC<BlogPageProps> = ({
8280 date = { date }
8381 cookieConsentColor = { blogPrimaryColor }
8482 />
85- { ! pageOpenedInApp ? (
83+ { ! pageOpenedInApp ( location ) ? (
8684 < StandardLayout
8785 location = { location }
8886 big = { big }
0 commit comments