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
|
|
@ -1,6 +1,6 @@
|
|||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Row, Alert, FormGroup, ControlLabel, Button } from 'react-bootstrap';
|
||||
import { Row, Alert, Form, Button } from 'react-bootstrap';
|
||||
import Col from '../../components/Col/Col';
|
||||
import { Accounts } from 'meteor/accounts-base';
|
||||
import { Bert } from 'meteor/themeteorchef:bert';
|
||||
|
|
@ -67,12 +67,12 @@ class ResetPassword extends React.Component {
|
|||
</Helmet>
|
||||
<Col xs={12} sm={6} md={4}>
|
||||
<h4 className="page-header">{this.t("Resetea tu contraseña")}</h4>
|
||||
<Alert bsStyle="info">
|
||||
<Alert variant="info">
|
||||
{ this.t("Para resetear tu contraseña, introduce una nueva debajo. Iniciarás la sesión con la nueva contraseña.") }
|
||||
</Alert>
|
||||
<form ref={form => (this.form = form)} onSubmit={event => event.preventDefault()}>
|
||||
<FormGroup>
|
||||
<ControlLabel>{this.t("Nueva contraseña")}</ControlLabel>
|
||||
<Form.Group>
|
||||
<Form.Label>{this.t("Nueva contraseña")}</Form.Label>
|
||||
<input
|
||||
type="password"
|
||||
className="form-control"
|
||||
|
|
@ -80,9 +80,9 @@ class ResetPassword extends React.Component {
|
|||
name="newPassword"
|
||||
placeholder={this.t("Nueva contraseña")}
|
||||
/>
|
||||
</FormGroup>
|
||||
<FormGroup>
|
||||
<ControlLabel>{this.t("Repite la nueva contraseña")}</ControlLabel>
|
||||
</Form.Group>
|
||||
<Form.Group>
|
||||
<Form.Label>{this.t("Repite la nueva contraseña")}</Form.Label>
|
||||
<input
|
||||
type="password"
|
||||
className="form-control"
|
||||
|
|
@ -90,8 +90,8 @@ class ResetPassword extends React.Component {
|
|||
name="repeatNewPassword"
|
||||
placeholder={this.t("Repite la nueva contraseña")}
|
||||
/>
|
||||
</FormGroup>
|
||||
<Button type="submit" bsStyle="success">{this.t("Resetea la contraseña y entra")}</Button>
|
||||
</Form.Group>
|
||||
<Button type="submit" variant="success">{this.t("Resetea la contraseña y entra")}</Button>
|
||||
</form>
|
||||
</Col>
|
||||
</Row>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue