deps: react-bootstrap 0.31 -> 2 (Bootstrap 5 CSS deferred as debt)
Removes the largest batch of React-19-blocking warnings: the 0.31 components (Grid, FormGroup, ControlLabel, Navbar.Header/Brand, Checkbox, SafeAnchor) all leaned on legacy context / defaultProps. 29 files converted: Grid->Container, FormGroup/ControlLabel/FormControl/ HelpBlock -> Form.Group/Label/Control/Text, Checkbox -> Form.Check (label as prop), bsStyle->variant (default->secondary), bsSize->size, pull-right->float-end. Custom Col.js now re-exports v2's Col; custom NavItem.js rewritten self-contained (no SafeAnchor/createChainedFunction); Navigation.js drops react-bootstrap Navbar (raw markup anyway). CSS stays on Bootstrap 4 (alexwine:bootstrap-4) for now: the BS4->5 jump is entangled with the jQuery carousel/swipe + navbar-collapse and is tracked as separate debt in UPGRADE.md. Only .form-label needed a shim (forms.scss). Browser-verified home carousel+navbar, signup form + terms checkbox, login form; REST smoke byte-identical.
This commit is contained in:
parent
12bdbe8fed
commit
a1a1b9a801
30 changed files with 539 additions and 333 deletions
|
|
@ -6,7 +6,7 @@ import React, { Fragment } from 'react';
|
|||
import PropTypes from 'prop-types';
|
||||
import { withTracker } from 'meteor/react-meteor-data';
|
||||
import { withTranslation, Trans } from 'react-i18next';
|
||||
import { Row, Col, Alert, FormGroup } from 'react-bootstrap';
|
||||
import { Row, Col, Alert, Form } from 'react-bootstrap';
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import { Bert } from 'meteor/themeteorchef:bert';
|
||||
import { Helmet } from 'react-helmet-async';
|
||||
|
|
@ -191,14 +191,14 @@ class Fire extends React.Component {
|
|||
{ (this.props.falsePositives.length > 0 || this.props.industries.length > 0) &&
|
||||
<Row>
|
||||
<Col>
|
||||
<Alert bsStyle="success"><Trans>Parece que este fuego no es un fuego forestal.</Trans></Alert>
|
||||
<Alert variant="success"><Trans>Parece que este fuego no es un fuego forestal.</Trans></Alert>
|
||||
</Col>
|
||||
</Row> }
|
||||
<h5>{t('¿No es un fuego forestal?')}</h5>
|
||||
<div>
|
||||
<Trans>Indícanos de que tipo de fuego se trata y ayúdanos así a mejorar nuestras notificaciones:</Trans>
|
||||
</div>
|
||||
<FormGroup>
|
||||
<Form.Group>
|
||||
<div className="btn-group">
|
||||
<button className="btn btn-secondary btn-sm dropdown-toggle lang-selector" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||
{t('Elige un tipo')}
|
||||
|
|
@ -217,7 +217,7 @@ class Fire extends React.Component {
|
|||
}
|
||||
</div>
|
||||
</div>
|
||||
</FormGroup>
|
||||
</Form.Group>
|
||||
</Fragment> }
|
||||
|
||||
<h4>{t('Comentarios')}</h4>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue