From 02184d2a3be8db84c687b2696b28ff7dbda19a4c Mon Sep 17 00:00:00 2001 From: Aditya Thakral Date: Wed, 9 Jun 2021 21:05:54 -0400 Subject: [PATCH] *.organized-content.mdx -> *.section.mdx --- components/playground.tsx | 12 ++++++------ ...ed-content.mdx => duties-of-officers.section.mdx} | 0 ...zed-content.mdx => executive-council.section.mdx} | 0 ....organized-content.mdx => membership.section.mdx} | 0 .../{name.organized-content.mdx => name.section.mdx} | 0 ...rs.organized-content.mdx => officers.section.mdx} | 0 ...ose.organized-content.mdx => purpose.section.mdx} | 0 next-env.d.ts | 6 +++--- 8 files changed, 9 insertions(+), 9 deletions(-) rename content/playground/constitution/{duties-of-officers.organized-content.mdx => duties-of-officers.section.mdx} (100%) rename content/playground/constitution/{executive-council.organized-content.mdx => executive-council.section.mdx} (100%) rename content/playground/constitution/{membership.organized-content.mdx => membership.section.mdx} (100%) rename content/playground/constitution/{name.organized-content.mdx => name.section.mdx} (100%) rename content/playground/constitution/{officers.organized-content.mdx => officers.section.mdx} (100%) rename content/playground/constitution/{purpose.organized-content.mdx => purpose.section.mdx} (100%) diff --git a/components/playground.tsx b/components/playground.tsx index 5a417969..f292f73a 100644 --- a/components/playground.tsx +++ b/components/playground.tsx @@ -13,22 +13,22 @@ import AltTab, { import Name, { metadata as nameOrganizedContentMetadata, -} from "../content/playground/constitution/name.organized-content.mdx"; +} from "../content/playground/constitution/name.section.mdx"; import Purpose, { metadata as purposeOrganizedContentMetadata, -} from "../content/playground/constitution/purpose.organized-content.mdx"; +} from "../content/playground/constitution/purpose.section.mdx"; import Membership, { metadata as membershipOrganizedContentMetadata, -} from "../content/playground/constitution/membership.organized-content.mdx"; +} from "../content/playground/constitution/membership.section.mdx"; import Officers, { metadata as officersOrganizedContentMetadata, -} from "../content/playground/constitution/officers.organized-content.mdx"; +} from "../content/playground/constitution/officers.section.mdx"; import Duties, { metadata as dutiesOrganizedContentMetadata, -} from "../content/playground/constitution/duties-of-officers.organized-content.mdx"; +} from "../content/playground/constitution/duties-of-officers.section.mdx"; import ExecutiveCouncil, { metadata as executiveCouncilOrganizedContentMetadata, -} from "../content/playground/constitution/executive-council.organized-content.mdx"; +} from "../content/playground/constitution/executive-council.section.mdx"; import UnavailableContent, { metadata as unavailableMetadata, diff --git a/content/playground/constitution/duties-of-officers.organized-content.mdx b/content/playground/constitution/duties-of-officers.section.mdx similarity index 100% rename from content/playground/constitution/duties-of-officers.organized-content.mdx rename to content/playground/constitution/duties-of-officers.section.mdx diff --git a/content/playground/constitution/executive-council.organized-content.mdx b/content/playground/constitution/executive-council.section.mdx similarity index 100% rename from content/playground/constitution/executive-council.organized-content.mdx rename to content/playground/constitution/executive-council.section.mdx diff --git a/content/playground/constitution/membership.organized-content.mdx b/content/playground/constitution/membership.section.mdx similarity index 100% rename from content/playground/constitution/membership.organized-content.mdx rename to content/playground/constitution/membership.section.mdx diff --git a/content/playground/constitution/name.organized-content.mdx b/content/playground/constitution/name.section.mdx similarity index 100% rename from content/playground/constitution/name.organized-content.mdx rename to content/playground/constitution/name.section.mdx diff --git a/content/playground/constitution/officers.organized-content.mdx b/content/playground/constitution/officers.section.mdx similarity index 100% rename from content/playground/constitution/officers.organized-content.mdx rename to content/playground/constitution/officers.section.mdx diff --git a/content/playground/constitution/purpose.organized-content.mdx b/content/playground/constitution/purpose.section.mdx similarity index 100% rename from content/playground/constitution/purpose.organized-content.mdx rename to content/playground/constitution/purpose.section.mdx diff --git a/next-env.d.ts b/next-env.d.ts index e5f0d934..cdebab18 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -49,16 +49,16 @@ declare module "*.team-member.mdx" { export default ReactComponent; } -declare module "*.organized-content.mdx" { +declare module "*.section.mdx" { import { ComponentType } from "react"; - interface OrganizedContentMetadata { + interface SectionMetadata { title: string; id: string; } const ReactComponent: ComponentType; - export const metadata: OrganizedContentMetadata; + export const metadata: SectionMetadata; export default ReactComponent; }