File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed
src/renderer/components/ActiveConnectionLayout Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { Button } from '../ui'
44import { DatabaseExplorer } from '../DatabaseExplorer/DatabaseExplorer'
55import { QueryWorkspace } from '../QueryWorkspace/QueryWorkspace'
66import { ThemeSwitcher } from '../ThemeSwitcher'
7- import { useState , useEffect , useRef } from 'react'
7+ import { useState , useEffect } from 'react'
88import './ActiveConnectionLayout.css'
99
1010interface 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 >
You can’t perform that action at this time.
0 commit comments