Skip to content

Commit 36e97d2

Browse files
committed
Fix react warning
1 parent d4a88e6 commit 36e97d2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/mdx/src/mdx-client/slots.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,8 @@ function InnerCodeSlot({ editorStep, setFocus }) {
1818
const onTabClick = (filename: string) => {
1919
setFocus({ fileName: filename, focus: null, id: "" })
2020
}
21-
return (
22-
<InnerCode {...editorStep} onTabClick={onTabClick} />
23-
)
21+
const { preset, presetConfig, ...props } = editorStep
22+
return <InnerCode {...props} onTabClick={onTabClick} />
2423
}
2524
export function PreviewSlot() {
2625
const context = React.useContext(StaticStepContext)

0 commit comments

Comments
 (0)