Skip to content

Commit 354c72c

Browse files
CopilotPekoPPT
andcommitted
Remove hammer.js imports from all examples - phase 1 complete
Co-authored-by: PekoPPT <[email protected]>
1 parent 5a8c8d2 commit 354c72c

File tree

25 files changed

+1461
-1564
lines changed

25 files changed

+1461
-1564
lines changed

examples/coffee-warehouse-nextjs/app/components/Chart.jsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,13 @@ import {
1313
ChartLegend,
1414
ChartTooltip,
1515
} from "@progress/kendo-react-charts";
16-
const importHammerJs = () => import("hammerjs");
1716
import { groupBy, filterBy } from "@progress/kendo-data-query";
1817
import { useInternationalization } from "@progress/kendo-react-intl";
1918
import { locales } from "./../resources/locales";
2019

2120
const MONTH_FORMAT = "MMMM yyyy";
2221

2322
export const Chart = (props) => {
24-
if (typeof window !== "undefined") {
25-
importHammerJs();
26-
}
27-
2823
const {
2924
data,
3025
groupByField,

examples/coffee-warehouse-nextjs/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
"cldr-core": "44.0.1",
4040
"cldr-dates-full": "44.0.1",
4141
"cldr-numbers-full": "44.0.1",
42-
"hammerjs": "^2.0.8",
4342
"next": "14.2.30",
4443
"react": "^18",
4544
"react-dom": "^18"

examples/kendo-react-build-a-sales-dashboard/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"@progress/kendo-ripple": "^1.0.2",
3333
"@progress/kendo-theme-material": "^11.0.2",
3434
"bootstrap-4-grid": "^3.4.0",
35-
"hammerjs": "^2.0.8",
3635
"react": "^18.2.0",
3736
"react-dom": "^18.2.0",
3837
"react-scripts": "5.0.1",

examples/kendo-react-build-a-sales-dashboard/src/components/BarChartContainer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import 'hammerjs';
32

43
import {
54
Chart,

examples/kendo-react-build-a-sales-dashboard/src/components/DonutChartContainer.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import React from 'react';
2-
import 'hammerjs';
32

43
import {
54
Chart,

examples/kendo-react-finance-portfolio/package-lock.json

Lines changed: 0 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/kendo-react-finance-portfolio/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
"file-loader": "^6.2.0",
6767
"fs-extra": "^11.2.0",
6868
"gh-pages": "^6.1.0",
69-
"hammerjs": "^2.0.8",
7069
"html-webpack-plugin": "^5.6.0",
7170
"identity-obj-proxy": "^3.0.0",
7271
"is-wsl": "^3.1.0",

examples/kendo-react-finance-portfolio/src/components/Stock/Stock.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {
2424
ChartNavigatorCategoryAxis,
2525
} from '@progress/kendo-react-charts';
2626

27-
import 'hammerjs';
2827
import styles from './stock.module.scss';
2928
import { dataService } from '../../services';
3029
import { useInternationalization } from '@progress/kendo-react-intl';

0 commit comments

Comments
 (0)