fixes to yarn build

This commit is contained in:
zramsay 2023-12-21 08:40:42 -05:00
parent 1319dfdf8c
commit 7caa8fc38f
7 changed files with 8 additions and 71 deletions

View File

@ -96,34 +96,6 @@ export const Footer = ({ data }: Props) => {
</Link>
</div>
<nav>
<ul>
{data.productsLinks.map((link) => {
return (
<li key={link.title}>
{link.href && (
<Link href={link.href} variant="nav">
{link.title}
</Link>
)}
{!link.href && <span>{link.title}</span>}
</li>
)
})}
</ul>
<ul>
{data.partnersLinks.map((link) => {
return (
<li key={link.title}>
{link.href && (
<Link href={link.href} variant="nav">
{link.title}
</Link>
)}
{!link.href && <span>{link.title}</span>}
</li>
)
})}
</ul>
{// <ul>
// {data.aboutLinks.map((link) => {
// return (
@ -139,20 +111,6 @@ export const Footer = ({ data }: Props) => {
// })}
// </ul>
}
<ul>
{data.communityLinks.map((link) => {
return (
<li key={link.title}>
{link.href && (
<Link href={link.href} variant="nav">
{link.title}
</Link>
)}
{!link.href && <span>{link.title}</span>}
</li>
)
})}
</ul>
<ul className={s['connect__links']}>
<li>
<Link href="/contact#contactform" variant="nav">

View File

@ -15,6 +15,8 @@ interface Props {
heroB01Link: string
heroB02Link: string
heroDescription: string
heroDescription01: string
heroDescription02: string
heroHeading: string
}
}

View File

@ -5,7 +5,6 @@ import { Arrow } from '~/components/icons/arrow'
import { Container } from '~/components/layout/container'
import Section from '~/components/layout/section'
import Heading from '~/components/primitives/heading'
import Link from '~/components/primitives/link'
import s from './hero.module.scss'

View File

@ -1,7 +1,7 @@
import { useTheme } from 'next-themes'
import { useEffect, useRef } from 'react'
import Line from '~/components/icons/line'
//import Line from '~/components/icons/line'
import { Container } from '~/components/layout/container'
import Section from '~/components/layout/section'
import Heading from '~/components/primitives/heading'

View File

@ -20,9 +20,9 @@ import { Meta } from '~/components/common/meta'
import { PageLayout } from '~/components/layout/page'
import Hero from '~/components/sections/about/hero'
import Related from '~/components/sections/about/related'
import Roadmap from '~/components/sections/about/roadmap'
import Team from '~/components/sections/about/team'
import Whitepaper from '~/components/sections/about/whitepaper'
//import Roadmap from '~/components/sections/about/roadmap'
//import Team from '~/components/sections/about/team'
//import Whitepaper from '~/components/sections/about/whitepaper'
import {
AboutHero,
AboutRoadmap,
@ -56,10 +56,7 @@ export const getStaticProps = async () => {
const [
heroData,
teamsData,
teamsPageData,
whitepaperData,
roadmapData,
footerData,
headerData
] = await Promise.all([
@ -79,9 +76,6 @@ export const getStaticProps = async () => {
data: allBlogPosts.data.slice(0, 3)
},
heroData: heroData?.aboutPage,
teamsData: teamsData?.allTeams,
whitepaperData: whitepaperData?.aboutPage,
roadmapData: roadmapData?.aboutPage,
teamsPageData: teamsPageData?.aboutPage,
footerData: footerData?.footer,
headerData: headerData?.header,
@ -98,10 +92,6 @@ export const getStaticProps = async () => {
const About = ({
initialBlogPosts,
heroData,
teamsData,
teamsPageData,
roadmapData,
whitepaperData,
footerData,
headerData
}: InferGetStaticPropsType<typeof getStaticProps>) => {

View File

@ -21,7 +21,7 @@ import { PageLayout } from '~/components/layout/page'
import Benefits from '~/components/sections/homepage/benefits'
import Hero from '~/components/sections/homepage/hero'
import LatestNews from '~/components/sections/homepage/latest-news'
import WhatOthersSay from '~/components/sections/homepage/what-others-say'
//import WhatOthersSay from '~/components/sections/homepage/what-others-say'
import { FooterQuery } from '~/lib/cms/queries/footer'
import { HeaderQuery } from '~/lib/cms/queries/header'
import {
@ -56,9 +56,7 @@ export const getStaticProps = async () => {
const [
heroData,
benefitsData,
othersData,
latestData,
testimonialsData,
footerData,
headerData
] = await Promise.all([
@ -79,9 +77,7 @@ export const getStaticProps = async () => {
},
heroData: heroData?.homePage,
benefitsData: benefitsData?.homePage,
othersData: othersData?.homePage,
latestData: latestData?.homePage,
testimonialsData: testimonialsData?.allTestimonials,
footerData: footerData?.footer,
headerData: headerData?.header,
categories,
@ -99,8 +95,6 @@ const HomePage = ({
heroData,
benefitsData,
latestData,
othersData,
testimonialsData,
footerData,
headerData
}: InferGetStaticPropsType<typeof getStaticProps>) => {

View File

@ -18,7 +18,7 @@ import { InferGetStaticPropsType } from 'next'
import { Meta } from '~/components/common/meta'
import { PageLayout } from '~/components/layout/page'
import WhatOthersSay from '~/components/sections/homepage/what-others-say'
//import WhatOthersSay from '~/components/sections/homepage/what-others-say'
import Hero from '~/components/sections/partners/hero'
import Opportunities from '~/components/sections/partners/opportunities'
import { FooterQuery } from '~/lib/cms/queries/footer'
@ -51,8 +51,6 @@ export const getStaticProps = async () => {
const heroBlogPost = allBlogPosts.data[0]
const [
othersData,
testimonialsData,
heroData,
optData,
footerData,
@ -68,8 +66,6 @@ export const getStaticProps = async () => {
return {
props: {
othersData: othersData?.homePage,
testimonialsData: testimonialsData?.allTestimonials,
heroData: heroData?.partnersPage,
optData: optData?.partnersPage,
footerData: footerData?.footer,
@ -89,8 +85,6 @@ export const getStaticProps = async () => {
}
const Careers = ({
othersData,
testimonialsData,
heroData,
optData,
footerData,