diff --git a/desktop/plugins/public/databases/index.tsx b/desktop/plugins/public/databases/index.tsx index b1b89f302..9bce250e7 100644 --- a/desktop/plugins/public/databases/index.tsx +++ b/desktop/plugins/public/databases/index.tsx @@ -10,20 +10,16 @@ import { styled, produce, - Toolbar, ManagedTable, - Text, - Input, colors, getStringFromErrorLike, - Textarea, TableBodyColumn, TableRows, TableBodyRow, TableRowSortOrder, - Value, renderValue, TableHighlightedRows, + Value, } from 'flipper'; import React, {KeyboardEvent, ChangeEvent, useState, useCallback} from 'react'; import {Methods, Events} from './ClientProtocol'; @@ -44,6 +40,7 @@ import { useValue, Layout, useMemoize, + Toolbar, } from 'flipper-plugin'; import { Select, @@ -53,6 +50,7 @@ import { Button, Menu, Dropdown, + Input, } from 'antd'; import { ConsoleSqlOutlined, @@ -65,8 +63,12 @@ import { TableOutlined, } from '@ant-design/icons'; +const {TextArea} = Input; + const {Option} = Select; +const {Text} = Typography; + const PAGE_SIZE = 50; const FAVORITES_LOCAL_STORAGE_KEY = 'plugin-database-favorites-sql-queries'; @@ -84,14 +86,6 @@ const ErrorBar = styled.div({ }); const QueryHistoryManagedTable = styled(ManagedTable)({paddingLeft: 16}); const PageInfoContainer = styled(Layout.Horizontal)({alignItems: 'center'}); -const TableInfoTextArea = styled(Textarea)({ - width: '98%', - height: '100%', - marginLeft: '1%', - marginTop: '1%', - marginBottom: '1%', - readOnly: true, -}); type DatabasesPluginState = { selectedDatabase: number; @@ -1211,7 +1205,7 @@ export function Component() { { -