summaryrefslogtreecommitdiffstats
path: root/src/ts
diff options
context:
space:
mode:
authorArmand Philippot <git@armandphilippot.com>2021-12-24 15:35:33 +0100
committerArmand Philippot <git@armandphilippot.com>2021-12-24 15:37:26 +0100
commit0bb6411ee9fce02c2e5680f2be5740a1bbb508ad (patch)
tree59b574dbda693dc5f1b2605272a6eff3b23802f2 /src/ts
parent3956ed77e11455a963ce17a64783d70fa666a7a0 (diff)
chore: replace CV content with mdx content
Since I replace the other pages, there is no reason to fetch this page content through WP GraphQL.
Diffstat (limited to 'src/ts')
-rw-r--r--src/ts/types/app.ts8
-rw-r--r--src/ts/types/pages.ts23
2 files changed, 1 insertions, 30 deletions
diff --git a/src/ts/types/app.ts b/src/ts/types/app.ts
index ebd604c..2a1c9fc 100644
--- a/src/ts/types/app.ts
+++ b/src/ts/types/app.ts
@@ -5,7 +5,6 @@ import { PostBy } from './articles';
import { AllPostsSlug, RawPostsList } from './blog';
import { CommentData, CreateComment } from './comments';
import { ContactData, SendEmail } from './contact';
-import { PageBy } from './pages';
import {
AllSubjectsSlug,
AllThematicsSlug,
@@ -29,11 +28,7 @@ export type AppPropsWithLayout = AppProps & {
// API
//==============================================================================
-export type VariablesType<T> = T extends
- | PageBy
- | PostBy
- | SubjectBy
- | ThematicBy
+export type VariablesType<T> = T extends PostBy | SubjectBy | ThematicBy
? Slug
: T extends RawPostsList
? CursorPagination
@@ -48,7 +43,6 @@ export type RequestType =
| AllSubjectsSlug
| AllThematicsSlug
| CreateComment
- | PageBy
| PostBy
| SubjectBy
| ThematicBy
diff --git a/src/ts/types/pages.ts b/src/ts/types/pages.ts
deleted file mode 100644
index 93ff62e..0000000
--- a/src/ts/types/pages.ts
+++ /dev/null
@@ -1,23 +0,0 @@
-import { ContentParts, Dates } from './app';
-
-export type Page = {
- content: string;
- dates: Dates;
- intro: string;
- title: string;
-};
-
-export type RawPage = {
- contentParts: ContentParts;
- date: string;
- modified: string;
- title: string;
-};
-
-export type PageBy = {
- pageBy: RawPage;
-};
-
-export type PageProps = {
- page: Page;
-};