Skip to content

Commit

Permalink
fix: removing warnnings from console (#763)
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaMajmudar authored Jun 17, 2024
1 parent 37be5b5 commit 7c901be
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/StyledMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ const StyledMarkdownBlock = ({ markdown }: { markdown: string }) => {
);
},
},
TableOfContent: {
tableofcontent: {
component: ({ depth }) => {
// eslint-disable-next-line react-hooks/rules-of-hooks
const fullMarkdown = useContext(FullMarkdownContext);
Expand Down
2 changes: 1 addition & 1 deletion pages/learn/getting-started-step-by-step.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ JSON Schema is a vocabulary that you can use to annotate and validate JSON docum

After you create the JSON Schema document, you can validate the example data against your schema using a validator in a language of your choice. See <userevent type='plausible-event-name=activation-explore-tools'>[Tools](https://json-schema.org/implementations)</userevent> for a current list of supported validators.

<TableOfContent depth={2} />
<tableofcontent depth={2} />

<span id="overview"></span>

Expand Down
2 changes: 1 addition & 1 deletion pages/md-style-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ Danger is a special type of info box in which text showing any danger can be sho
Table of Contents provides a structured overview of the main sections or chapters within the current page/document.

```markdown
<TableOfContent content={content} depth={depth} />
<tableofcontent content={content} depth={depth} />
```

---
Expand Down
2 changes: 1 addition & 1 deletion pages/specification-links.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ section: docs

You can find the latest released draft on the [Specification](../../specification) page. The complex numbering and naming system for drafts and meta-schemas is fully explained here as well.

<TableOfContent depth={4} />
<tableofcontent depth={4} />

## Understanding draft names and numbers

Expand Down

0 comments on commit 7c901be

Please sign in to comment.