Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ class EstimateQueryCostButton extends React.PureComponent {
<i className="fa fa-clock-o" /> {btnText}
</Button>
}
bsSize="medium"
/>
</span>
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ class ScheduleQueryButton extends React.PureComponent {
<i className="fa fa-calendar" /> {t('Schedule')}
</Button>
}
bsSize="medium"
/>
</span>
);
Expand Down
1 change: 0 additions & 1 deletion superset-frontend/src/components/DeleteModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ export default function DeleteModal({
primaryButtonType="danger"
show={open}
title={title}
bsSize="medium"
>
<DescriptionContainer>{description}</DescriptionContainer>
<StyleFormGroup>
Expand Down
5 changes: 2 additions & 3 deletions superset-frontend/src/components/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ interface ModalProps {
primaryButtonType?: 'primary' | 'danger';
show: boolean;
title: React.ReactNode;
bsSize?: 'xs' | 'xsmall' | 'sm' | 'small' | 'medium' | 'lg' | 'large';
bsSize?: 'small' | 'large'; // react-bootstrap also supports 'sm', 'lg' but we're keeping it simple.
}

const StyledModal = styled(BaseModal)`
Expand Down Expand Up @@ -75,10 +75,9 @@ export default function Modal({
primaryButtonType = 'primary',
show,
title,
bsSize = 'lg',
}: ModalProps) {
return (
<StyledModal show={show} onHide={onHide} bsSize={bsSize}>
<StyledModal show={show} onHide={onHide}>
<BaseModal.Header closeButton>
<BaseModal.Title>
<Title>{title}</Title>
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/components/ModalTrigger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const propTypes = {
onExit: PropTypes.func,
isButton: PropTypes.bool,
isMenuItem: PropTypes.bool,
bsSize: PropTypes.string,
bsSize: PropTypes.oneOf(['large', 'small']), // react-bootstrap also supports 'sm', 'lg' but we're keeping it simple.
className: PropTypes.string,
tooltip: PropTypes.string,
backdrop: PropTypes.oneOf(['static', true, false]),
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/datasource/ChangeDatasourceModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ const ChangeDatasourceModal: FunctionComponent<ChangeDatasourceModalProps> = ({
};

return (
<Modal show={show} onHide={onHide} onEnter={onEnterModal} bsSize="lg">
<Modal show={show} onHide={onHide} onEnter={onEnterModal} bsSize="large">
<Modal.Header closeButton>
<Modal.Title>{t('Select a datasource')}</Modal.Title>
</Modal.Header>
Expand Down
2 changes: 1 addition & 1 deletion superset-frontend/src/datasource/DatasourceModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ const DatasourceModal: FunctionComponent<DatasourceModalProps> = ({
};

return (
<Modal show={show} onHide={onHide} bsSize="lg">
<Modal show={show} onHide={onHide} bsSize="large">
<Modal.Header closeButton>
<Modal.Title>
<div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default class VizTypeControl extends React.PureComponent {
onHide={this.toggleModal}
onEnter={this.focusSearch}
onExit={this.setSearchRef}
bsSize="lg"
bsSize="large"
>
<Modal.Header closeButton>
<Modal.Title>{t('Select a visualization type')}</Modal.Title>
Expand Down