mirror of
https://github.com/apache/superset.git
synced 2026-04-21 09:04:38 +00:00
refactor: Deletes the common/components folder (#18999)
This commit is contained in:
committed by
GitHub
parent
9f834e8317
commit
329855170e
@@ -30,7 +30,7 @@ import React, {
|
||||
Reducer,
|
||||
} from 'react';
|
||||
import Tabs from 'src/components/Tabs';
|
||||
import { Select } from 'src/common/components';
|
||||
import { AntdSelect } from 'src/components';
|
||||
import Alert from 'src/components/Alert';
|
||||
import Modal from 'src/components/Modal';
|
||||
import Button from 'src/components/Button';
|
||||
@@ -684,7 +684,7 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
{t('Or choose from a list of other databases we support:')}
|
||||
</h4>
|
||||
<div className="control-label">{t('Supported databases')}</div>
|
||||
<Select
|
||||
<AntdSelect
|
||||
className="available-select"
|
||||
onChange={setDatabaseModel}
|
||||
placeholder={t('Choose a database...')}
|
||||
@@ -694,15 +694,15 @@ const DatabaseModal: FunctionComponent<DatabaseModalProps> = ({
|
||||
a.name.localeCompare(b.name),
|
||||
)
|
||||
.map((database: DatabaseForm) => (
|
||||
<Select.Option value={database.name} key={database.name}>
|
||||
<AntdSelect.Option value={database.name} key={database.name}>
|
||||
{database.name}
|
||||
</Select.Option>
|
||||
</AntdSelect.Option>
|
||||
))}
|
||||
{/* Allow users to connect to DB via legacy SQLA form */}
|
||||
<Select.Option value="Other" key="Other">
|
||||
<AntdSelect.Option value="Other" key="Other">
|
||||
{t('Other')}
|
||||
</Select.Option>
|
||||
</Select>
|
||||
</AntdSelect.Option>
|
||||
</AntdSelect>
|
||||
<Alert
|
||||
showIcon
|
||||
closable={false}
|
||||
|
||||
Reference in New Issue
Block a user