Skip to content

Commit 61e3eca

Browse files
authored
Merge pull request #1419 from IgniteUI/nalipiev/react-fixes
fix: update react templates
2 parents dee43d4 + faeb25a commit 61e3eca

File tree

9 files changed

+12
-22
lines changed

9 files changed

+12
-22
lines changed

packages/cli/templates/react/igr-es6/grid/basic/files/src/views/__path__/index.js

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default class $(ClassName) extends Component {
2222
<h1 className={style.title}>{this.title}</h1>
2323
<div>
2424
Read more on the&nbsp;
25-
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/grid.html">
25+
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/grids/data-grid.html">
2626
official documentation page
2727
</a>
2828
</div>
@@ -39,15 +39,8 @@ export default class $(ClassName) extends Component {
3939
<IgrDateTimeColumn field="OrderDate" headerText="Order Date" />
4040
</IgrDataGrid>
4141
</div>
42-
<div className={style.grid}>
43-
<IgrDataGrid
44-
height="100%"
45-
width="100%"
46-
autoGenerateColumns="true"
47-
dataSource={this.data} />
48-
</div>
4942
</div>
5043
</div>
5144
)
5245
}
53-
}
46+
}

packages/cli/templates/react/igr-es6/grid/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class IgrDataGridComponent extends BaseComponent {
77
constructor() {
88
super(__dirname);
99
this.name = "Data Grid";
10-
this.group = "Grids & Lists";
10+
this.group = "Grids";
1111
this.description = "pick from grids: basic, sorting, templating.";
1212
}
1313
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Gauges": "scale measure Controls including Linear and Radial Gauge and Bullet Graph.",
33
"Charts": "high-performance data visualization for category and financial data.",
4-
"Grids & Lists": "bind and display data sets with little coding or configuration."
5-
}
4+
"Grids": "bind and display data sets with little coding or configuration."
5+
}

packages/cli/templates/react/igr-es6/pie-chart/default/files/src/views/__path__/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class $(ClassName) extends Component {
5858
<h1 className={style.title}>{this.title}</h1>
5959
<div>
6060
Read more on the&nbsp;
61-
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/piechart.html">
61+
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/pie-chart.html">
6262
official documentation page
6363
</a>
6464
</div>

packages/cli/templates/react/igr-ts/grid/basic/files/src/app/__path__/__filePrefix__.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export default function $(ClassName)() {
1515
<h1 className={style.title}>{title}</h1>
1616
<div>
1717
Read more on the&nbsp;
18-
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/grid.html">
18+
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/grids/data-grid.html">
1919
official documentation page
2020
</a>
2121
</div>
@@ -49,9 +49,6 @@ export default function $(ClassName)() {
4949
</IgrColumn>
5050
</IgrGrid>
5151
</div>
52-
<div className={style.grid}>
53-
<IgrGrid autoGenerate={true} data={data} />
54-
</div>
5552
</div>
5653
</div>
5754
);

packages/cli/templates/react/igr-ts/grid/basic/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class GridTemplate extends IgniteUIForReactTemplate {
1414
this.projectType = "igr-ts";
1515
this.components = ["Grid"];
1616
this.controlGroup = "Data Grids";
17-
this.packages = ["igniteui-react-grids@~19.0.0", "igniteui-react-inputs@~19.0.0",
18-
"igniteui-react-layouts@~19.0.0", "igniteui-react@~19.2.0"];
17+
this.packages = ["igniteui-react-grids@~19.2.1", "igniteui-react-inputs@~19.0.1",
18+
"igniteui-react-layouts@~19.0.1", "igniteui-react@~19.2.1"];
1919

2020
this.hasExtraConfiguration = false;
2121
}

packages/cli/templates/react/igr-ts/grid/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class IgrTsDataGridComponent extends BaseComponent {
77
constructor() {
88
super(__dirname);
99
this.name = "Data Grid";
10-
this.group = "Grids & Lists";
10+
this.group = "Grids";
1111
this.description = "pick from grids: basic, sorting, templating.";
1212
}
1313
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"Gauges": "scale measure Controls including Linear and Radial Gauge and Bullet Graph.",
33
"Charts": "high-performance data visualization for category and financial data.",
4-
"Grids & Lists": "bind and display data sets with little coding or configuration."
4+
"Grids": "bind and display data sets with little coding or configuration."
55
}

packages/cli/templates/react/igr-ts/pie-chart/default/files/src/app/__path__/__filePrefix__.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default function $(ClassName)() {
3131
<h1 className={style.title}>{title}</h1>
3232
<div>
3333
Read more on the&nbsp;
34-
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/piechart.html">
34+
<a href="https://www.infragistics.com/products/ignite-ui-react/react/components/pie-chart.html">
3535
official documentation page
3636
</a>
3737
</div>

0 commit comments

Comments
 (0)