Fix build
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
1751b312c0
commit
a33a45688e
|
@ -235,7 +235,7 @@ export interface SectionWithContent {
|
|||
export function createReadAllSection(
|
||||
sections: Section[],
|
||||
content: false,
|
||||
numberedSections: boolean
|
||||
numberedSections?: undefined
|
||||
): Section;
|
||||
export function createReadAllSection(
|
||||
sections: SectionWithContent[],
|
||||
|
@ -245,7 +245,7 @@ export function createReadAllSection(
|
|||
export function createReadAllSection(
|
||||
sections: SectionWithContent[] | Section[],
|
||||
content = true,
|
||||
numberedSections: boolean
|
||||
numberedSections?: boolean
|
||||
): SectionWithContent | Section {
|
||||
const readAllSection = {
|
||||
id: READ_ALL_ID,
|
||||
|
|
|
@ -146,7 +146,7 @@ export function EventDescriptionCardDemo() {
|
|||
export function EventCardDemo() {
|
||||
return (
|
||||
<>
|
||||
{events.map(({ Content, metadata }, idx) => (
|
||||
{events.map(({ Content, metadata }) => (
|
||||
<>
|
||||
<EventCard
|
||||
{...metadata}
|
||||
|
@ -220,12 +220,14 @@ export function LinkDemo() {
|
|||
|
||||
export function OrganizedContentDemo() {
|
||||
const sections = [...constitution];
|
||||
const numberedSections = false;
|
||||
const readAllSection = createReadAllSection(
|
||||
constitution.map(({ id, title, Content }) => ({
|
||||
Content,
|
||||
section: { id, title },
|
||||
})),
|
||||
true
|
||||
true,
|
||||
numberedSections
|
||||
);
|
||||
sections.unshift({
|
||||
...readAllSection.section,
|
||||
|
@ -253,6 +255,7 @@ export function OrganizedContentDemo() {
|
|||
id={id}
|
||||
link={FakeLink}
|
||||
pageTitle="Playground"
|
||||
numberedSections={numberedSections}
|
||||
>
|
||||
<Content />
|
||||
</OrganizedContent>
|
||||
|
|
|
@ -1,9 +1,12 @@
|
|||
import path from "path";
|
||||
|
||||
import { createReadAllPage } from "@/components/OrganizedContent/ReadAll";
|
||||
import {
|
||||
createReadAllPage,
|
||||
Options,
|
||||
} from "@/components/OrganizedContent/ReadAll";
|
||||
import { createReadAllGetStaticProps } from "@/components/OrganizedContent/static";
|
||||
|
||||
export const options = {
|
||||
export const options: Options = {
|
||||
title: "Code of Conduct",
|
||||
image: "images/code-of-conduct.svg",
|
||||
pagePath: path.join("about", "code-of-conduct"),
|
||||
|
|
Loading…
Reference in New Issue