[yoga-11] add common type and add logo
This commit is contained in:
@@ -24,13 +24,16 @@ export default async function About() {
|
||||
blogs,
|
||||
subscribeNow,
|
||||
footer,
|
||||
common
|
||||
} = pageData;
|
||||
|
||||
|
||||
console.info("about us", JSON.stringify(aboutUs))
|
||||
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
{ header && <SubHeaderComponent header1={header?.header1} header2={header?.header2} description={header?.description}/> }
|
||||
{ header && <SubHeaderComponent header={header} common={common}/> }
|
||||
|
||||
{ aboutUs && <AboutUsWithBoxesComponent config={aboutUs}/>}
|
||||
{ discount && <YogaDiscountComponent config={discount}/>}
|
||||
|
||||
@@ -16,11 +16,12 @@ export default async function ContactPage(){
|
||||
contactUs,
|
||||
google_maps,
|
||||
subscribe,
|
||||
footer
|
||||
footer,
|
||||
common
|
||||
} = await strapiApi.getContactPage();
|
||||
return (
|
||||
<>
|
||||
{ <SubHeaderComponent header1={header} description={description} /> }
|
||||
{ <SubHeaderComponent header={{header1:header,description}} common={common}/> }
|
||||
{ contactUs && <ContactUsComponent contactUs={contactUs} /> }
|
||||
{ google_maps && <GoogleMapsComponent config={google_maps} /> }
|
||||
{ subscribe && <SubscribeComponent config={subscribe} styleClass={"contact_subscribe_section"} /> }
|
||||
|
||||
@@ -15,11 +15,12 @@ export default async function About() {
|
||||
questionsAndAnswers,
|
||||
blogs,
|
||||
subscribe,
|
||||
footer
|
||||
footer,
|
||||
common
|
||||
} = await strapiApi.getFaqPage();
|
||||
return (
|
||||
<>xxxxx
|
||||
{ <SubHeaderComponent header1={header} description={description} /> }
|
||||
<>
|
||||
{ <SubHeaderComponent header={{header1:header,description}} common={common}/> }
|
||||
{ questionsAndAnswers && <FaqComponent config={questionsAndAnswers} /> }
|
||||
{ blogs && <BlogPostsComponent config={blogs} /> }
|
||||
{ subscribe && <SubscribeComponent config={subscribe} /> }
|
||||
|
||||
@@ -21,11 +21,12 @@ export default async function PricesPage( ) {
|
||||
discount,
|
||||
blogs,
|
||||
subscribe,
|
||||
footer
|
||||
footer,
|
||||
common
|
||||
} = await strapiApi.getPricesPage();
|
||||
return (
|
||||
<>
|
||||
<SubHeaderComponent header1={header} description={description}/>
|
||||
<SubHeaderComponent header={{header1:header,description}} common={common}/>
|
||||
{ price && <PricingComponent config={price}/> }
|
||||
{ discount && <YogaDiscountComponent config={discount} /> }
|
||||
{ blogs && <BlogPostsComponent config={blogs} /> }
|
||||
|
||||
@@ -45,7 +45,8 @@ export default async function ServiceArticlePage({params}: {
|
||||
return (
|
||||
<>
|
||||
{selectedService && selectedService.header && selectedService.description &&
|
||||
<SubHeaderComponent header1={selectedService.header} description={selectedService.description}/>}
|
||||
<SubHeaderComponent header={{header1:selectedService.header, description: selectedService.description}} common={common}/>}
|
||||
|
||||
<section className={clsx( styles.article, 'mb-3')}>
|
||||
<div className="container">
|
||||
<div className={"row"}>
|
||||
|
||||
@@ -20,11 +20,12 @@ export default async function Services() {
|
||||
feedbacks,
|
||||
blogs,
|
||||
footer,
|
||||
subscribe
|
||||
subscribe,
|
||||
common
|
||||
} = await strapiApi.getServicesPage();
|
||||
return (
|
||||
<>
|
||||
{header && description && <SubHeaderComponent header1={header} description={description} />}
|
||||
<SubHeaderComponent header={{header1:header,description}} common={common}/>
|
||||
{ ourServices && <OurServicesComponent config={ourServices} /> }
|
||||
{ contactUs && <ContactUsComponent contactUs={contactUs} />}
|
||||
{ ourSpecialities && <OurSpecialitiesComponent config={ourSpecialities} /> }
|
||||
|
||||
Reference in New Issue
Block a user