Skip to content

Commit 8d21ffe

Browse files
fix typescript error caused by prettier
1 parent d82751b commit 8d21ffe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/MDX/Sandpack/NavigationBar.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,11 @@ export function NavigationBar({providedFiles}: {providedFiles: Array<string>}) {
163163
</Listbox.Button>
164164
</div>
165165
</div>
166+
{/* prettier-ignore: If Prettier reformats this block, the @ts-ignore directive will no longer be adjacent to the problematic line, causing TypeScript errors */}
166167
{/* @ts-ignore: the Listbox type from '@headlessui/react' is incompatible with JSX in React 19 */}
167168
{isMultiFile && showDropdown && (
168169
<Listbox.Options className="absolute mt-0.5 bg-card dark:bg-card-dark px-2 inset-x-0 mx-0 rounded-b-lg border-1 border-border dark:border-border-dark rounded-sm shadow-md">
170+
{/* prettier-ignore: If Prettier reformats this block, the @ts-ignore directive will no longer be adjacent to the problematic line, causing TypeScript errors */}
169171
{/* @ts-ignore: the Listbox type from '@headlessui/react' is incompatible with JSX in React 19 */}
170172
{visibleFiles.map((filePath: string) => (
171173
<Listbox.Option key={filePath} value={filePath} as={Fragment}>

0 commit comments

Comments
 (0)