From 4dd0a688f26927b443541062ab762ce717f49331 Mon Sep 17 00:00:00 2001 From: Ane Date: Wed, 18 Sep 2024 11:45:45 +0200 Subject: [PATCH] changed variable name to page --- src/app/(main)/[slug]/[id]/page.tsx | 2 +- src/app/(main)/[slug]/page.tsx | 4 ++-- src/app/(main)/page.tsx | 2 +- src/blog/BlogPreview.tsx | 2 +- src/compensations/CompensationsPreview.tsx | 2 +- src/components/sections/article/ArticlePreview.tsx | 2 +- src/components/sections/callToAction/CallToActionPreview.tsx | 2 +- src/components/sections/callout/CalloutPreview.tsx | 2 +- src/components/sections/grid/GridPreview.tsx | 2 +- src/components/sections/hero/HeroPreview.tsx | 2 +- .../sections/imageSection/ImageSectionComponentPreview.tsx | 2 +- src/components/sections/logoSalad/LogoSaladPreview.tsx | 2 +- src/components/sections/testimonials/TestimonialsPreview.tsx | 2 +- src/post/PostPagePreview.tsx | 2 +- src/utils/api.ts | 2 +- studio/lib/queries/{pages.ts => page.ts} | 0 studio/lib/queries/{compensations.ts => specialPages.ts} | 0 17 files changed, 16 insertions(+), 16 deletions(-) rename studio/lib/queries/{pages.ts => page.ts} (100%) rename studio/lib/queries/{compensations.ts => specialPages.ts} (100%) diff --git a/src/app/(main)/[slug]/[id]/page.tsx b/src/app/(main)/[slug]/[id]/page.tsx index 4d8434130..1dff97b8e 100644 --- a/src/app/(main)/[slug]/[id]/page.tsx +++ b/src/app/(main)/[slug]/[id]/page.tsx @@ -11,7 +11,7 @@ import { MORE_POST_PREVIEW, POST_SLUG_QUERY, SEO_POST_SLUG_QUERY, -} from "studio/lib/queries/pages"; +} from "studio/lib/queries/page"; type Props = { params: { diff --git a/src/app/(main)/[slug]/page.tsx b/src/app/(main)/[slug]/page.tsx index f56d0674b..51f28eb21 100644 --- a/src/app/(main)/[slug]/page.tsx +++ b/src/app/(main)/[slug]/page.tsx @@ -13,13 +13,13 @@ import { CompanyLocation } from "studio/lib/interfaces/companyDetails"; import { CompensationsPage } from "studio/lib/interfaces/compensations"; import { BlogPage, PageBuilder, Post } from "studio/lib/interfaces/pages"; import { COMPANY_LOCATIONS_QUERY } from "studio/lib/queries/companyDetails"; -import { COMPENSATIONS_PAGE_QUERY } from "studio/lib/queries/compensations"; import { BLOG_PAGE_QUERY, POSTS_QUERY, SEO_SLUG_QUERY, SLUG_QUERY, -} from "studio/lib/queries/pages"; +} from "studio/lib/queries/page"; +import { COMPENSATIONS_PAGE_QUERY } from "studio/lib/queries/specialPages"; import { loadQuery } from "studio/lib/store"; export const dynamic = "force-dynamic"; diff --git a/src/app/(main)/page.tsx b/src/app/(main)/page.tsx index 77a5a2b42..238a16bb6 100644 --- a/src/app/(main)/page.tsx +++ b/src/app/(main)/page.tsx @@ -7,7 +7,7 @@ import { fetchSeoData, generateMetadataFromSeo } from "src/utils/seo"; import { LinkType } from "studio/lib/interfaces/navigation"; import { PageBuilder } from "studio/lib/interfaces/pages"; import { LANDING_QUERY } from "studio/lib/queries/navigation"; -import { PAGE_QUERY, SEO_PAGE_QUERY } from "studio/lib/queries/pages"; +import { PAGE_QUERY, SEO_PAGE_QUERY } from "studio/lib/queries/page"; import { loadQuery } from "studio/lib/store"; export async function generateMetadata(): Promise { diff --git a/src/blog/BlogPreview.tsx b/src/blog/BlogPreview.tsx index 39db25e88..3c2249998 100644 --- a/src/blog/BlogPreview.tsx +++ b/src/blog/BlogPreview.tsx @@ -3,7 +3,7 @@ import { QueryResponseInitial, useQuery } from "@sanity/react-loader"; import { Suspense } from "react"; import { BlogPage, Post } from "studio/lib/interfaces/pages"; -import { BLOG_PAGE_QUERY } from "studio/lib/queries/pages"; +import { BLOG_PAGE_QUERY } from "studio/lib/queries/page"; import { Blog } from "./Blog"; diff --git a/src/compensations/CompensationsPreview.tsx b/src/compensations/CompensationsPreview.tsx index 3c0207a47..131e2aaeb 100644 --- a/src/compensations/CompensationsPreview.tsx +++ b/src/compensations/CompensationsPreview.tsx @@ -5,7 +5,7 @@ import { Suspense } from "react"; import { CompanyLocation } from "studio/lib/interfaces/companyDetails"; import { CompensationsPage } from "studio/lib/interfaces/compensations"; import { COMPANY_LOCATIONS_QUERY } from "studio/lib/queries/companyDetails"; -import { COMPENSATIONS_PAGE_QUERY } from "studio/lib/queries/compensations"; +import { COMPENSATIONS_PAGE_QUERY } from "studio/lib/queries/specialPages"; import Compensations from "./Compensations"; diff --git a/src/components/sections/article/ArticlePreview.tsx b/src/components/sections/article/ArticlePreview.tsx index 3a7dd12a1..ef0c272e3 100644 --- a/src/components/sections/article/ArticlePreview.tsx +++ b/src/components/sections/article/ArticlePreview.tsx @@ -5,7 +5,7 @@ import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; import { ArticleSection, PageBuilder } from "studio/lib/interfaces/pages"; -import { PAGE_QUERY } from "studio/lib/queries/pages"; +import { PAGE_QUERY } from "studio/lib/queries/page"; import Article from "./Article"; diff --git a/src/components/sections/callToAction/CallToActionPreview.tsx b/src/components/sections/callToAction/CallToActionPreview.tsx index e46a9052b..ac7c86f5f 100644 --- a/src/components/sections/callToAction/CallToActionPreview.tsx +++ b/src/components/sections/callToAction/CallToActionPreview.tsx @@ -5,7 +5,7 @@ import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; import { CallToActionSection, PageBuilder } from "studio/lib/interfaces/pages"; -import { PAGE_QUERY } from "studio/lib/queries/pages"; +import { PAGE_QUERY } from "studio/lib/queries/page"; import CallToAction from "./CallToAction"; diff --git a/src/components/sections/callout/CalloutPreview.tsx b/src/components/sections/callout/CalloutPreview.tsx index 621fb1cf4..d31e0d165 100644 --- a/src/components/sections/callout/CalloutPreview.tsx +++ b/src/components/sections/callout/CalloutPreview.tsx @@ -5,7 +5,7 @@ import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; import { CalloutSection, PageBuilder } from "studio/lib/interfaces/pages"; -import { PAGE_QUERY } from "studio/lib/queries/pages"; +import { PAGE_QUERY } from "studio/lib/queries/page"; import Callout from "./Callout"; diff --git a/src/components/sections/grid/GridPreview.tsx b/src/components/sections/grid/GridPreview.tsx index 4842eeb8b..d5d3c0853 100644 --- a/src/components/sections/grid/GridPreview.tsx +++ b/src/components/sections/grid/GridPreview.tsx @@ -5,7 +5,7 @@ import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; import { GridSection, PageBuilder } from "studio/lib/interfaces/pages"; -import { PAGE_QUERY } from "studio/lib/queries/pages"; +import { PAGE_QUERY } from "studio/lib/queries/page"; import Grid from "./Grid"; diff --git a/src/components/sections/hero/HeroPreview.tsx b/src/components/sections/hero/HeroPreview.tsx index 6cb8b30ea..6d2ac0a59 100644 --- a/src/components/sections/hero/HeroPreview.tsx +++ b/src/components/sections/hero/HeroPreview.tsx @@ -5,7 +5,7 @@ import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; import { HeroSection, PageBuilder } from "studio/lib/interfaces/pages"; -import { PAGE_QUERY } from "studio/lib/queries/pages"; +import { PAGE_QUERY } from "studio/lib/queries/page"; import { Hero } from "./Hero"; diff --git a/src/components/sections/imageSection/ImageSectionComponentPreview.tsx b/src/components/sections/imageSection/ImageSectionComponentPreview.tsx index 2400cda35..d12b4cb58 100644 --- a/src/components/sections/imageSection/ImageSectionComponentPreview.tsx +++ b/src/components/sections/imageSection/ImageSectionComponentPreview.tsx @@ -4,7 +4,7 @@ import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; import { ImageSection, PageBuilder } from "studio/lib/interfaces/pages"; -import { PAGE_QUERY } from "studio/lib/queries/pages"; +import { PAGE_QUERY } from "studio/lib/queries/page"; import ImageSectionComponent from "./ImageSectionComponent"; diff --git a/src/components/sections/logoSalad/LogoSaladPreview.tsx b/src/components/sections/logoSalad/LogoSaladPreview.tsx index 4ca84ea0e..93587cc88 100644 --- a/src/components/sections/logoSalad/LogoSaladPreview.tsx +++ b/src/components/sections/logoSalad/LogoSaladPreview.tsx @@ -5,7 +5,7 @@ import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; import { LogoSaladSection, PageBuilder } from "studio/lib/interfaces/pages"; -import { PAGE_QUERY } from "studio/lib/queries/pages"; +import { PAGE_QUERY } from "studio/lib/queries/page"; import { LogoSalad } from "./LogoSalad"; diff --git a/src/components/sections/testimonials/TestimonialsPreview.tsx b/src/components/sections/testimonials/TestimonialsPreview.tsx index c38c0c107..17f65f224 100644 --- a/src/components/sections/testimonials/TestimonialsPreview.tsx +++ b/src/components/sections/testimonials/TestimonialsPreview.tsx @@ -5,7 +5,7 @@ import { Suspense } from "react"; import { PreviewProps } from "src/types/preview"; import { PageBuilder, TestimonialsSection } from "studio/lib/interfaces/pages"; -import { PAGE_QUERY } from "studio/lib/queries/pages"; +import { PAGE_QUERY } from "studio/lib/queries/page"; import { Testimonials } from "./Testimonials"; diff --git a/src/post/PostPagePreview.tsx b/src/post/PostPagePreview.tsx index 14ee10420..fc8bbe230 100644 --- a/src/post/PostPagePreview.tsx +++ b/src/post/PostPagePreview.tsx @@ -3,7 +3,7 @@ import { QueryResponseInitial, useQuery } from "@sanity/react-loader"; import { Suspense } from "react"; import { BlogPage, Post } from "studio/lib/interfaces/pages"; -import { POST_SLUG_QUERY } from "studio/lib/queries/pages"; +import { POST_SLUG_QUERY } from "studio/lib/queries/page"; import PostPage from "./PostPage"; diff --git a/src/utils/api.ts b/src/utils/api.ts index d652d7d45..52a6eccf9 100644 --- a/src/utils/api.ts +++ b/src/utils/api.ts @@ -3,7 +3,7 @@ import { Post } from "studio/lib/interfaces/pages"; import { CATEGORIZED_POSTS_QUERY, COUNT_POSTS_QUERY, -} from "studio/lib/queries/pages"; +} from "studio/lib/queries/page"; interface FetchResult { data: Post[]; diff --git a/studio/lib/queries/pages.ts b/studio/lib/queries/page.ts similarity index 100% rename from studio/lib/queries/pages.ts rename to studio/lib/queries/page.ts diff --git a/studio/lib/queries/compensations.ts b/studio/lib/queries/specialPages.ts similarity index 100% rename from studio/lib/queries/compensations.ts rename to studio/lib/queries/specialPages.ts