Skip to content

Commit

Permalink
🤖 Merge PR #68023 [react-bootstrap-table] Stop testing react-dom by @…
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Dec 29, 2023
1 parent b7bc0d9 commit 0730ea3
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 26 deletions.
3 changes: 1 addition & 2 deletions types/react-bootstrap-table/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"@types/react": "*"
},
"devDependencies": {
"@types/react-bootstrap-table": "workspace:.",
"@types/react-dom": "*"
"@types/react-bootstrap-table": "workspace:."
},
"owners": [
{
Expand Down
18 changes: 7 additions & 11 deletions types/react-bootstrap-table/react-bootstrap-table-tests.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ import {
TableHeaderColumn,
ToolBarProps,
} from "react-bootstrap-table";
import { render } from "react-dom";

interface Product {
id: number;
Expand Down Expand Up @@ -92,16 +91,13 @@ function priceFormatter(cell: number, row: Product) {
return "<i class=\"glyphicon glyphicon-usd\"></i> " + cell;
}

render(
<BootstrapTable data={products} striped={true} hover={true} ignoreSinglePage>
<TableHeaderColumn dataField="id" isKey={true} dataAlign="center" dataSort={true}>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField="name" dataSort={true} editable={{ type: "textarea", rows: 10 }}>
Product Name
</TableHeaderColumn>
<TableHeaderColumn dataField="price" dataFormat={priceFormatter}>Product Price</TableHeaderColumn>
</BootstrapTable>,
document.getElementById("app"),
);
<BootstrapTable data={products} striped={true} hover={true} ignoreSinglePage>
<TableHeaderColumn dataField="id" isKey={true} dataAlign="center" dataSort={true}>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField="name" dataSort={true} editable={{ type: "textarea", rows: 10 }}>
Product Name
</TableHeaderColumn>
<TableHeaderColumn dataField="price" dataFormat={priceFormatter}>Product Price</TableHeaderColumn>
</BootstrapTable>;

const qualityType = {
0: "good",
Expand Down
3 changes: 1 addition & 2 deletions types/react-bootstrap-table/v2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
"@types/react": "*"
},
"devDependencies": {
"@types/react-bootstrap-table": "workspace:.",
"@types/react-dom": "*"
"@types/react-bootstrap-table": "workspace:."
},
"owners": [
{
Expand Down
18 changes: 7 additions & 11 deletions types/react-bootstrap-table/v2/react-bootstrap-table-tests.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import * as React from "react";
import { ApplyFilterParameter, BootstrapTable, Filter, TableHeaderColumn } from "react-bootstrap-table";
import { render } from "react-dom";

const products = [{
id: 1,
Expand All @@ -17,16 +16,13 @@ function priceFormatter(cell: any, row: any) {
return "<i class=\"glyphicon glyphicon-usd\"></i> " + cell;
}

render(
<BootstrapTable data={products} striped={true} hover={true} ignoreSinglePage>
<TableHeaderColumn dataField="id" isKey={true} dataAlign="center" dataSort={true}>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField="name" dataSort={true} editable={{ type: "textarea", rows: 10 }}>
Product Name
</TableHeaderColumn>
<TableHeaderColumn dataField="price" dataFormat={priceFormatter}>Product Price</TableHeaderColumn>
</BootstrapTable>,
document.getElementById("app"),
);
<BootstrapTable data={products} striped={true} hover={true} ignoreSinglePage>
<TableHeaderColumn dataField="id" isKey={true} dataAlign="center" dataSort={true}>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField="name" dataSort={true} editable={{ type: "textarea", rows: 10 }}>
Product Name
</TableHeaderColumn>
<TableHeaderColumn dataField="price" dataFormat={priceFormatter}>Product Price</TableHeaderColumn>
</BootstrapTable>;

const qualityType = {
0: "good",
Expand Down

0 comments on commit 0730ea3

Please sign in to comment.