Skip to content

Commit 87770c1

Browse files
committed
Rename component prop types to a non-exported Props in PromptField Footer and Tabs
1 parent 7061307 commit 87770c1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

  • packages/ui/src/components/editor/common/prompts/PromptField/components

‎packages/ui/src/components/editor/common/prompts/PromptField/components/Footer/Footer.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { KeycapWrapper } from '../../../../../prompt-view/KeycapWrapper'
88
import { Target } from '@shared/types/target'
99
import type { PromptFieldProps, EditFormat } from '../../PromptField'
1010

11-
export type Props = {
11+
type Props = {
1212
props: PromptFieldProps
1313
input_ref: RefObject<HTMLDivElement>
1414
is_mac: boolean

‎packages/ui/src/components/editor/common/prompts/PromptField/components/Tabs/Tabs.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { ReactSortable } from 'react-sortablejs'
33
import cn from 'classnames'
44
import styles from '../../PromptField.module.scss'
55

6-
export type TabsProps = {
6+
type Props = {
77
tabs_count: number
88
active_tab_index: number
99
on_tabs_reorder?: (new_order: number[]) => void
@@ -15,7 +15,7 @@ export type TabsRef = {
1515
handle_mouse_leave: () => void
1616
}
1717

18-
export const Tabs = forwardRef<TabsRef, TabsProps>((props, ref) => {
18+
export const Tabs = forwardRef<TabsRef, Props>((props, ref) => {
1919
const [tab_items, set_tab_items] = useState<{ id: string }[]>([])
2020
const [has_left_active_tab, set_has_left_active_tab] = useState(true)
2121
const [hovered_tab_index, set_hovered_tab_index] = useState<number | null>(

0 commit comments

Comments
 (0)