Skip to content

Commit

Permalink
[#227] Update react-bootstrap
Browse files Browse the repository at this point in the history
Replace deprecated Jumbotron with bootstrap classes
  • Loading branch information
palagdan committed Oct 7, 2024
1 parent e66982c commit 4619c86
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 62 deletions.
143 changes: 85 additions & 58 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"prop-types": "^15.7.2",
"react": "^18.2.0",
"react-authorization": "^0.4.1",
"react-bootstrap": "1.6.8",
"react-bootstrap": "^2.10.5",
"react-datepicker": "^4.14.1",
"react-dom": "^18.2.0",
"react-dropzone": "11.4.2",
Expand Down
6 changes: 3 additions & 3 deletions src/components/dashboard/Dashboard.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import withI18n from "../../i18n/withI18n";
import { FormattedMessage, injectIntl } from "react-intl";
import { Col, Container, Jumbotron, Row } from "react-bootstrap";
import { Col, Container, Row } from "react-bootstrap";
import DashboardTile from "./DashboardTile";
import PropTypes from "prop-types";
import { processTypeaheadOptions } from "../record/TypeaheadAnswer";
Expand Down Expand Up @@ -154,7 +154,7 @@ class Dashboard extends React.Component {

render() {
return (
<Jumbotron>
<div className="shadow p-4 mb-4 bg-white rounded">
<PromiseTrackingMask area="dashboard" coverViewport={true} />
<ImportRecordsDialog
show={this.state.importDialogOpen}
Expand All @@ -163,7 +163,7 @@ class Dashboard extends React.Component {
/>
{this.renderTitle()}
{this._renderMainDashboard()}
</Jumbotron>
</div>
);
}
}
Expand Down

0 comments on commit 4619c86

Please sign in to comment.