chore(sqllab): migrate to typescript (#26171)

This commit is contained in:
JUST.in DO IT
2024-02-06 11:26:50 -08:00
committed by GitHub
parent 5d46d3a5d3
commit 14f88e3f89
16 changed files with 415 additions and 432 deletions

View File

@@ -103,7 +103,7 @@ import SaveQuery, { QueryPayload } from '../SaveQuery';
import ScheduleQueryButton from '../ScheduleQueryButton';
import EstimateQueryCostButton from '../EstimateQueryCostButton';
import ShareSqlLabQuery from '../ShareSqlLabQuery';
import SqlEditorLeftBar, { ExtendedTable } from '../SqlEditorLeftBar';
import SqlEditorLeftBar from '../SqlEditorLeftBar';
import AceEditorWrapper from '../AceEditorWrapper';
import RunQueryActionButton from '../RunQueryActionButton';
import QueryLimitSelect from '../QueryLimitSelect';
@@ -215,7 +215,6 @@ const StyledSqlEditor = styled.div`
const extensionsRegistry = getExtensionsRegistry();
export type Props = {
tables: ExtendedTable[];
queryEditor: QueryEditor;
defaultQueryLimit: number;
maxRow: number;
@@ -235,7 +234,6 @@ const elementStyle = (
});
const SqlEditor: React.FC<Props> = ({
tables,
queryEditor,
defaultQueryLimit,
maxRow,
@@ -839,7 +837,6 @@ const SqlEditor: React.FC<Props> = ({
<SqlEditorLeftBar
database={database}
queryEditorId={queryEditor.id}
tables={tables}
setEmptyState={bool => setShowEmptyState(bool)}
/>
</StyledSidebar>