Skip to content

Commit

Permalink
feat: export default page (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
junghyeonsu authored Jan 11, 2025
1 parent 2063e04 commit 4f5b418
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/components/mdx-components.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import { Divider } from "./Divider";
import { ProfileCard } from "./ProfileCard";
import { HintTooltip } from "./HintTooltip";
import { Curation } from "./Curation";
import { BlogListPage } from "../pages/BlogListPage";
import { CurationListPage } from "../pages/CurationListPage";
import { DocsListPage } from "../pages/DocsListPage";
import BlogListPage from "../pages/BlogListPage";
import CurationListPage from "../pages/CurationListPage";
import DocsListPage from "../pages/DocsListPage";

export const mdxComponents = {
...defaultMdxComponents,
Expand Down
4 changes: 2 additions & 2 deletions src/pages/BlogListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { Authors } from "@/src/types/author";
import authorsYaml from "../../authors.yml";

// TODO: 페이지 컴포넌트 공통화 혹은 추상화
export const BlogListPage = () => {
export default function BlogListPage() {
// Index page는 제외
const removedPages = blogSource.getPages().filter((page) => page.slugs.length !== 0);

Expand Down Expand Up @@ -63,4 +63,4 @@ export const BlogListPage = () => {
))}
</div>
);
};
}
4 changes: 2 additions & 2 deletions src/pages/CurationListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { Authors } from "@/src/types/author";
import authorsYaml from "../../authors.yml";

// TODO: 페이지 컴포넌트 공통화 혹은 추상화
export const CurationListPage = () => {
export default function CurationListPage() {
// Index page는 제외
const removedPages = curationSource.getPages().filter((page) => page.slugs.length !== 0);

Expand Down Expand Up @@ -63,4 +63,4 @@ export const CurationListPage = () => {
))}
</div>
);
};
}
4 changes: 2 additions & 2 deletions src/pages/DocsListPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import type { Authors } from "@/src/types/author";
import authorsYaml from "../../authors.yml";

// TODO: 페이지 컴포넌트 공통화 혹은 추상화
export const DocsListPage = () => {
export default function DocsListPage() {
// Index page는 제외
const removedPages = docsSource.getPages().filter((page) => page.slugs.length !== 0);

Expand Down Expand Up @@ -65,4 +65,4 @@ export const DocsListPage = () => {
))}
</div>
);
};
}

0 comments on commit 4f5b418

Please sign in to comment.