Skip to content

Commit 065959b

Browse files
refactor: remove unused new tab handler reference in ActiveConnectionLayout
1 parent feda7dc commit 065959b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/renderer/components/ActiveConnectionLayout/ActiveConnectionLayout.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { Button } from '../ui'
44
import { DatabaseExplorer } from '../DatabaseExplorer/DatabaseExplorer'
55
import { QueryWorkspace } from '../QueryWorkspace/QueryWorkspace'
66
import { ThemeSwitcher } from '../ThemeSwitcher'
7-
import { useState, useEffect, useRef } from 'react'
7+
import { useState, useEffect } from 'react'
88
import './ActiveConnectionLayout.css'
99

1010
interface ActiveConnectionLayoutProps {
@@ -19,7 +19,6 @@ export function ActiveConnectionLayout({
1919
onDisconnect
2020
}: ActiveConnectionLayoutProps) {
2121
const [isReadOnly, setIsReadOnly] = useState(false)
22-
const newTabHandlerRef = useRef<(() => void) | null>(null)
2322

2423
useEffect(() => {
2524
const checkReadOnly = async () => {
@@ -78,9 +77,6 @@ export function ActiveConnectionLayout({
7877
<QueryWorkspace
7978
connectionId={connectionId}
8079
onOpenTableTab={handleOpenTableTab}
81-
onRegisterNewTabHandler={(handler) => {
82-
newTabHandlerRef.current = handler
83-
}}
8480
/>
8581
</Panel>
8682
</PanelGroup>

0 commit comments

Comments
 (0)