Skip to content

Commit a1a66b0

Browse files
committed
feat: MDX 컴포넌트로 등록
1 parent cb2d900 commit a1a66b0

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

apps/pyconkr-admin/src/consts/mdx_components.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// 후대의 개발자님께 : 컴포넌트 맨 첫글자가 대문자로 시작하지 않으면 JSX 컴포넌트가 아니라 일반 HTML 태그로 인식합니다. 제발 대문자로 시작해주세요.
2+
import * as Common from "@frontend/common";
23
import * as Shop from "@frontend/shop";
34
import * as mui from "@mui/material";
45
import type { MDXComponents } from "mdx/types.js";
@@ -129,6 +130,10 @@ const MUIMDXComponents: MDXComponents = {
129130
Mui__material__Zoom: mui.Zoom,
130131
};
131132

133+
const PyConKRCommonMDXComponents: MDXComponents = {
134+
Common__Components__MDX__Map: Common.Components.MDX.Map,
135+
};
136+
132137
const PythonKRShopMDXComponents: MDXComponents = {
133138
Shop__Common__PriceDisplay: Shop.Components.Common.PriceDisplay,
134139
Shop__Common__SignInGuard: Shop.Components.Common.SignInGuard,
@@ -141,5 +146,6 @@ const PythonKRShopMDXComponents: MDXComponents = {
141146

142147
export const PyConKRMDXComponents = {
143148
...MUIMDXComponents,
149+
...PyConKRCommonMDXComponents,
144150
...PythonKRShopMDXComponents,
145151
};

apps/pyconkr/src/consts/mdx_components.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// 후대의 개발자님께 : 컴포넌트 맨 첫글자가 대문자로 시작하지 않으면 JSX 컴포넌트가 아니라 일반 HTML 태그로 인식합니다. 제발 대문자로 시작해주세요.
2+
import * as Common from "@frontend/common";
23
import * as Shop from "@frontend/shop";
34
import * as mui from "@mui/material";
45
import type { MDXComponents } from "mdx/types.js";
@@ -129,6 +130,10 @@ const MUIMDXComponents: MDXComponents = {
129130
Mui__material__Zoom: mui.Zoom,
130131
};
131132

133+
const PyConKRCommonMDXComponents: MDXComponents = {
134+
Common__Components__MDX__Map: Common.Components.MDX.Map,
135+
};
136+
132137
const PythonKRShopMDXComponents: MDXComponents = {
133138
Shop__Common__PriceDisplay: Shop.Components.Common.PriceDisplay,
134139
Shop__Common__SignInGuard: Shop.Components.Common.SignInGuard,
@@ -141,5 +146,6 @@ const PythonKRShopMDXComponents: MDXComponents = {
141146

142147
export const PyConKRMDXComponents = {
143148
...MUIMDXComponents,
149+
...PyConKRCommonMDXComponents,
144150
...PythonKRShopMDXComponents,
145151
};

0 commit comments

Comments
 (0)