Skip to content

Commit

Permalink
refactor: Update order of hook args
Browse files Browse the repository at this point in the history
  • Loading branch information
AVGVSTVS96 committed Jan 27, 2025
1 parent 4295fda commit cf60818
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/ChatUI/CodeHighlight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const CodeHighlight = ({
const isInline = node ? isInlineCode(node) : false;

const highlightedCode = useShikiHighlighter(
language,
code,
language,
customTheme,
{ delay: 150 }
);
Expand Down
2 changes: 1 addition & 1 deletion src/lib/hooks/useShiki/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ const throttleHighlighting = (
};

export const useShikiHighlighter = (
lang: Language,
code: string,
lang: Language,
theme: Theme,
options: HighlighterOptions = {}
) => {
Expand Down

0 comments on commit cf60818

Please sign in to comment.