Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions docs/src/components/ShowForTs.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
import * as React from 'react'

import { useStorageSlot } from '@docusaurus/theme-common'
import MDXContent from '@theme/MDXContent'

interface Props {
children: React.ReactNode
}

/**
* Only renders this block if user has selected TS in the codeblocks
* @Note leave a blank space after opening the tag e.g.
iblank space after opening the tag e.g.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems like the import statements and interface definition were unintentionally removed. This will cause the component to break as it relies on these imports and the Props interface.

Suggestion:

import { useStorageSlot } from '@docusaurus/theme-common';
import MDXContent from '@theme/MDXContent';

interface Props {
  children: React.ReactNode;
}

*
* @example
* <ShowForTs>
Expand Down
Loading