Skip to content

Commit

Permalink
fix(deps): update dependency prism-react-renderer to v2 (#8514)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Daniel Cousens <[email protected]>
  • Loading branch information
renovate[bot] and dcousens authored Sep 26, 2023
1 parent 73b129a commit 5e92dc6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
4 changes: 2 additions & 2 deletions docs/components/primitives/Code.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** @jsxRuntime classic */
/** @jsx jsx */
import Highlight, { Prism } from 'prism-react-renderer';
import { Highlight, Prism } from 'prism-react-renderer';
import { jsx } from '@emotion/react';
import { ReactNode, useEffect, useMemo, useState } from 'react';

Expand Down Expand Up @@ -103,7 +103,7 @@ export function Code({ children, className }: { children: string; className?: st
}, [collapseRanges]);

return (
<Highlight Prism={Prism} code={children.trim()} language={language as any} theme={theme}>
<Highlight prism={Prism} code={children.trim()} language={language} theme={theme}>
{({ className, style, tokens: tokens, getLineProps, getTokenProps }) => {
return (
<div
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"next": "^13.3.0",
"next-compose-plugins": "^2.2.1",
"prettier": "^2.5.0",
"prism-react-renderer": "^1.2.1",
"prism-react-renderer": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-focus-lock": "^2.7.1",
Expand Down
21 changes: 16 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e92dc6

Please sign in to comment.