修复构建错误
This commit is contained in:
@@ -2302,7 +2302,7 @@ export function FileTreeTab() {
|
|||||||
<DialogContent
|
<DialogContent
|
||||||
onOpenAutoFocus={(e) => {
|
onOpenAutoFocus={(e) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
const input = e.currentTarget.querySelector("input")
|
const input = (e.currentTarget as HTMLElement | null)?.querySelector("input")
|
||||||
if (input) requestAnimationFrame(() => input.focus())
|
if (input) requestAnimationFrame(() => input.focus())
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
@@ -2369,7 +2369,7 @@ export function FileTreeTab() {
|
|||||||
<DialogContent
|
<DialogContent
|
||||||
onOpenAutoFocus={(e) => {
|
onOpenAutoFocus={(e) => {
|
||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
const input = e.currentTarget.querySelector("input")
|
const input = (e.currentTarget as HTMLElement | null)?.querySelector("input")
|
||||||
if (input) requestAnimationFrame(() => input.focus())
|
if (input) requestAnimationFrame(() => input.focus())
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -360,7 +360,6 @@ export function StashWorkspace({ folderPath }: StashWorkspaceProps) {
|
|||||||
handleSelectFile(stash.ref_name, file)
|
handleSelectFile(stash.ref_name, file)
|
||||||
}
|
}
|
||||||
renderNode={(node) => renderNode(node, stash.ref_name)}
|
renderNode={(node) => renderNode(node, stash.ref_name)}
|
||||||
t={t}
|
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
@@ -409,7 +408,6 @@ interface StashCardProps {
|
|||||||
onDrop: () => void
|
onDrop: () => void
|
||||||
onSelectFile: (file: string) => void
|
onSelectFile: (file: string) => void
|
||||||
renderNode: (node: TreeNode) => React.ReactNode
|
renderNode: (node: TreeNode) => React.ReactNode
|
||||||
t: ReturnType<typeof useTranslations>
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function StashCard({
|
function StashCard({
|
||||||
@@ -424,8 +422,8 @@ function StashCard({
|
|||||||
onDrop,
|
onDrop,
|
||||||
onSelectFile,
|
onSelectFile,
|
||||||
renderNode,
|
renderNode,
|
||||||
t,
|
|
||||||
}: StashCardProps) {
|
}: StashCardProps) {
|
||||||
|
const t = useTranslations("Folder.branchDropdown.unstashDialog")
|
||||||
const [confirmApplyOpen, setConfirmApplyOpen] = useState(false)
|
const [confirmApplyOpen, setConfirmApplyOpen] = useState(false)
|
||||||
const tree = useMemo(() => (files ? buildFileTree(files) : []), [files])
|
const tree = useMemo(() => (files ? buildFileTree(files) : []), [files])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user