Skip to content

Commit d9e9f2a

Browse files
committed
Remove console.log in mdx package
1 parent 627457f commit d9e9f2a

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

packages/mdx/src/wrapComponentsWithThemeStyles.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,8 @@ function wrapComponent(
77
value: ComponentType<any> | string,
88
key: string
99
): ThemedComponent<string> {
10-
const component: ThemedComponent<string> = (props) => {
11-
return jsx(value, {
12-
...props,
13-
css: (th: any) => {
14-
console.log(`>> Styles for MDX component ${key}`, themed(key)(th))
15-
return themed(key)(th)
16-
},
17-
})
18-
}
10+
const component: ThemedComponent<string> = (props) =>
11+
jsx(value, { ...props, css: themed(key) })
1912

2013
component.displayName = "MdxComponents('" + key + "')"
2114
return component

0 commit comments

Comments
 (0)