Skip to content

Commit

Permalink
Lock file maintenance (#6959)
Browse files Browse the repository at this point in the history
* Lock file maintenance

* Lock file maintenance

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: gwyneplaine <cc.lee@live.com.au>
  • Loading branch information
3 people committed Dec 6, 2021
1 parent 178cd00 commit 8161cb2
Show file tree
Hide file tree
Showing 4 changed files with 694 additions and 845 deletions.
8 changes: 5 additions & 3 deletions docs/components/Markdown.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import { ReactComponentElement } from 'react';
import { MDXProvider } from '@mdx-js/react';
import { jsx } from '@emotion/react';
import { ReactElement, ReactNode } from 'react';

import { H1, H2, H3, H4, H5, H6 } from '../components/docs/Heading';
import { Code, InlineCode } from '../components/primitives/Code';
Expand All @@ -23,12 +23,14 @@ export const components = {
export function Markdown({
children,
description,
title,
...props
}: {
children: ReactNode;
children: ReactComponentElement<any>;
description: string;
title?: string;
}) {
const headings = getHeadings((children as ReactElement).props.children);
const headings = getHeadings(children.type().props.children);
const firstHeading = headings[0]?.label;

if (!firstHeading) {
Expand Down
1 change: 0 additions & 1 deletion docs/next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
2 changes: 1 addition & 1 deletion docs/pages/docs/guides/document-field-demo.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ You can see the changes both in the toolbar of the editor, and in the field conf
<DocumentFeaturesFormAndCode />

export default ({ children }) => {
const headings = getHeadings(children);
const headings = getHeadings(children.type().props.children);
return (
<DocsPage
noProse
Expand Down

0 comments on commit 8161cb2

Please sign in to comment.