Skip to content

Commit

Permalink
changed variable name to page
Browse files Browse the repository at this point in the history
  • Loading branch information
anemne committed Sep 18, 2024
1 parent c131e5f commit 4dd0a68
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/app/(main)/[slug]/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down
4 changes: 2 additions & 2 deletions src/app/(main)/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
2 changes: 1 addition & 1 deletion src/app/(main)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<Metadata> {
Expand Down
2 changes: 1 addition & 1 deletion src/blog/BlogPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/compensations/CompensationsPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/article/ArticlePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/callout/CalloutPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/grid/GridPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/hero/HeroPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/components/sections/logoSalad/LogoSaladPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/post/PostPagePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
2 changes: 1 addition & 1 deletion src/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 4dd0a68

Please sign in to comment.