mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 01:23:21 +08:00
fix(plugin-sql-editor): CB-2201 remove extra code
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
*/
|
||||
|
||||
import { observer } from 'mobx-react-lite';
|
||||
import { useContext, useMemo, useState } from 'react';
|
||||
import { useMemo, useState } from 'react';
|
||||
import styled, { css } from 'reshadow';
|
||||
|
||||
import { StaticImage, UploadArea } from '@cloudbeaver/core-blocks';
|
||||
@@ -15,7 +15,7 @@ import { useService } from '@cloudbeaver/core-di';
|
||||
import { useTranslate } from '@cloudbeaver/core-localization';
|
||||
import { BASE_TAB_STYLES, ITabData, TabList, TabPanelList, TabsState, VERTICAL_ROTATED_TAB_STYLES } from '@cloudbeaver/core-ui';
|
||||
import { MetadataMap } from '@cloudbeaver/core-utils';
|
||||
import { CaptureViewContext, useCaptureViewContext } from '@cloudbeaver/core-view';
|
||||
import { useCaptureViewContext } from '@cloudbeaver/core-view';
|
||||
|
||||
import { ISqlEditorModeProps, SqlEditorModeService } from '../SqlEditorModeService';
|
||||
import { DATA_CONTEXT_SQL_EDITOR_DATA } from './DATA_CONTEXT_SQL_EDITOR_DATA';
|
||||
@@ -108,7 +108,6 @@ const tabStyles = css`
|
||||
|
||||
export const SqlEditor = observer<ISqlEditorProps>(function SqlEditor({ state, className }) {
|
||||
const translate = useTranslate();
|
||||
const captureViewContext = useContext(CaptureViewContext);
|
||||
const sqlEditorModeService = useService(SqlEditorModeService);
|
||||
const data = useSqlEditor(state);
|
||||
const tools = useTools(state);
|
||||
|
||||
Reference in New Issue
Block a user