File tree 10 files changed +23
-15
lines changed
10 files changed +23
-15
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,11 @@ export const QuickMenu = ({ selectedText, setMenuOpen }: QuickMenuProps) => {
81
81
</ DropdownMenu . Label >
82
82
) }
83
83
{ noCategoryPrompts . map ( ( item ) => (
84
- < RecursiveItem item = { item } handleGenerate = { handleGenerate } />
84
+ < RecursiveItem
85
+ item = { item }
86
+ key = { item . id }
87
+ handleGenerate = { handleGenerate }
88
+ />
85
89
) ) }
86
90
</ DropdownMenu . Group >
87
91
</ DropdownMenu . Content >
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ const FieldWrapper = ({
22
22
onSubmit = { onSubmit }
23
23
>
24
24
< div >
25
- < label className = "cdx-text-xl dark:cdx-text-neutral-200 cdx-text-neutral-700" >
25
+ < div className = "cdx-text-xl dark:cdx-text-neutral-200 cdx-text-neutral-700" >
26
26
{ title }
27
- </ label >
27
+ </ div >
28
28
{ description && (
29
29
< p className = "cdx-text-sm cdx-mt-2 cdx-text-neutral-400" >
30
30
{ description }
Original file line number Diff line number Diff line change 1
1
import {
2
2
FolderTreeItemWrapper ,
3
3
SortableTree ,
4
- TreeItemComponentProps ,
5
- TreeItems ,
4
+ type TreeItemComponentProps ,
5
+ type TreeItems ,
6
6
} from 'dnd-kit-sortable-tree'
7
7
import React from 'react'
8
8
import { IoMove } from 'react-icons/io5'
9
- import { Prompt , usePrompts } from '../../../hooks/usePrompts'
9
+ import { type Prompt , usePrompts } from '../../../hooks/usePrompts'
10
10
import { AddItemButton } from './AddItemButton'
11
11
import { DeletePromptButton } from './DeletePromptButton'
12
12
import { EditPromptButton } from './EditPromptButton'
Original file line number Diff line number Diff line change 1
- import React from 'react'
1
+ import type React from 'react'
2
2
import SectionHeading from '../Elements/SectionHeading'
3
3
import FieldWrapper from '../Elements/FieldWrapper'
4
4
import { useSettings } from '../../../hooks/useSettings'
Original file line number Diff line number Diff line change 1
1
import * as Switch from '@radix-ui/react-switch'
2
- import React from 'react'
2
+ import type React from 'react'
3
3
import TextareaAutosize from 'react-textarea-autosize'
4
4
import { useSettings } from '../../../hooks/useSettings'
5
5
import FieldWrapper from '../Elements/FieldWrapper'
@@ -41,7 +41,7 @@ const QuickMenuSettings = () => {
41
41
< SectionHeading title = "Quick Menu" />
42
42
43
43
{ /* =========================
44
- Enable Visible Quick Menu
44
+ Enable Visible Quick Menu
45
45
===========================*/ }
46
46
< FieldWrapper
47
47
title = "Enable Quick Menu"
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ const ChatList = ({
24
24
} : ChatListProps ) => {
25
25
const containerRef = useRef < HTMLDivElement > ( null )
26
26
27
+ // biome-ignore lint/correctness/useExhaustiveDependencies: This is intentional, we need this for scroll to bottom
27
28
useEffect ( ( ) => {
28
29
if ( containerRef . current ) {
29
30
containerRef . current . scrollTop = containerRef . current . scrollHeight
Original file line number Diff line number Diff line change 1
1
import { RiCloseLine } from 'react-icons/ri'
2
- import { MessageFile } from '../../../hooks/useMessageDraft'
2
+ import type { MessageFile } from '../../../hooks/useMessageDraft'
3
3
4
4
interface FilePreviewBarProps {
5
5
files : MessageFile [ ]
Original file line number Diff line number Diff line change @@ -53,7 +53,11 @@ const InsertPromptToDraftButton = ({
53
53
</ DropdownMenu . Label >
54
54
) }
55
55
{ noCategoryPrompts . map ( ( item ) => (
56
- < RecursiveItem item = { item } handleGenerate = { setMessageDraftText } />
56
+ < RecursiveItem
57
+ item = { item }
58
+ key = { item . id }
59
+ handleGenerate = { setMessageDraftText }
60
+ />
57
61
) ) }
58
62
</ DropdownMenu . Group >
59
63
</ DropdownMenu . Content >
Original file line number Diff line number Diff line change 1
- import { CodeProps } from 'react-markdown/lib/ast-to-react'
1
+ import type { CodeProps } from 'react-markdown/lib/ast-to-react'
2
2
import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'
3
3
import {
4
4
atomDark ,
8
8
const isDarkMode = ( ) => {
9
9
if ( window . matchMedia ?.( '(prefers-color-scheme: dark)' ) . matches ) {
10
10
return true
11
- } else {
12
- return false
13
11
}
12
+ return false
14
13
}
15
14
16
15
const CodeBlock = ( props : CodeProps ) => {
Original file line number Diff line number Diff line change 1
- import { ReactMarkdownProps } from 'react-markdown/lib/ast-to-react'
1
+ import type { ReactMarkdownProps } from 'react-markdown/lib/ast-to-react'
2
2
3
3
type TableType =
4
4
| keyof JSX . IntrinsicElements
You can’t perform that action at this time.
0 commit comments