mirror of
https://github.com/apache/superset.git
synced 2026-05-12 11:25:56 +00:00
refactor: Boostrap to AntD - Row/Col (#14100)
This commit is contained in:
committed by
GitHub
parent
01de3096b3
commit
b963624e12
@@ -17,7 +17,8 @@
|
||||
* under the License.
|
||||
*/
|
||||
import React, { useState } from 'react';
|
||||
import { FormControl, FormGroup, Row, Col } from 'react-bootstrap';
|
||||
import { Row, Col } from 'src/common/components';
|
||||
import { FormControl, FormGroup } from 'react-bootstrap';
|
||||
import { t, supersetTheme, styled } from '@superset-ui/core';
|
||||
|
||||
import Button from 'src/components/Button';
|
||||
@@ -114,7 +115,7 @@ export default function SaveQuery({
|
||||
const renderModalBody = () => (
|
||||
<FormGroup bsSize="small">
|
||||
<Row>
|
||||
<Col md={12}>
|
||||
<Col xs={24}>
|
||||
<small>
|
||||
<FormLabel htmlFor="embed-height">{t('Name')}</FormLabel>
|
||||
</small>
|
||||
@@ -123,7 +124,7 @@ export default function SaveQuery({
|
||||
</Row>
|
||||
<br />
|
||||
<Row>
|
||||
<Col md={12}>
|
||||
<Col xs={24}>
|
||||
<small>
|
||||
<FormLabel htmlFor="embed-height">{t('Description')}</FormLabel>
|
||||
</small>
|
||||
@@ -140,7 +141,7 @@ export default function SaveQuery({
|
||||
<br />
|
||||
<div>
|
||||
<Row>
|
||||
<Col md={12}>
|
||||
<Col xs={24}>
|
||||
<small>{saveQueryWarning}</small>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
@@ -18,7 +18,8 @@
|
||||
*/
|
||||
import React, { FunctionComponent, useState } from 'react';
|
||||
import Form, { FormProps, FormValidation } from 'react-jsonschema-form';
|
||||
import { Col, FormControl, FormGroup, Row } from 'react-bootstrap';
|
||||
import { Row, Col } from 'src/common/components';
|
||||
import { FormControl, FormGroup } from 'react-bootstrap';
|
||||
import { t, styled } from '@superset-ui/core';
|
||||
import * as chrono from 'chrono-node';
|
||||
import ModalTrigger from 'src/components/ModalTrigger';
|
||||
@@ -140,7 +141,7 @@ const ScheduleQueryButton: FunctionComponent<ScheduleQueryButtonProps> = ({
|
||||
const renderModalBody = () => (
|
||||
<FormGroup>
|
||||
<StyledRow>
|
||||
<Col md={12}>
|
||||
<Col xs={24}>
|
||||
<FormLabel className="control-label" htmlFor="embed-height">
|
||||
{t('Label')}
|
||||
</FormLabel>
|
||||
@@ -153,7 +154,7 @@ const ScheduleQueryButton: FunctionComponent<ScheduleQueryButtonProps> = ({
|
||||
</Col>
|
||||
</StyledRow>
|
||||
<StyledRow>
|
||||
<Col md={12}>
|
||||
<Col xs={24}>
|
||||
<FormLabel className="control-label" htmlFor="embed-height">
|
||||
{t('Description')}
|
||||
</FormLabel>
|
||||
@@ -166,7 +167,7 @@ const ScheduleQueryButton: FunctionComponent<ScheduleQueryButtonProps> = ({
|
||||
</Col>
|
||||
</StyledRow>
|
||||
<Row>
|
||||
<Col md={12}>
|
||||
<Col xs={24}>
|
||||
<div className="json-schema">
|
||||
<Form
|
||||
schema={getJSONSchema()}
|
||||
@@ -179,7 +180,7 @@ const ScheduleQueryButton: FunctionComponent<ScheduleQueryButtonProps> = ({
|
||||
</Row>
|
||||
{scheduleQueryWarning && (
|
||||
<Row>
|
||||
<Col md={12}>
|
||||
<Col xs={24}>
|
||||
<small>{scheduleQueryWarning}</small>
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
Reference in New Issue
Block a user