From 3f0bdc8e8c1163433532872243e4dce210736abc Mon Sep 17 00:00:00 2001 From: Diana Gromova <16adianay@gmail.com> Date: Mon, 18 Dec 2023 19:33:54 +0400 Subject: [PATCH] Update App.tsx --- React/src/App.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/React/src/App.tsx b/React/src/App.tsx index eb84782..3bd8168 100644 --- a/React/src/App.tsx +++ b/React/src/App.tsx @@ -2,7 +2,6 @@ import React, { useCallback, useEffect, useState } from 'react'; import Button from 'devextreme-react/button'; import './App.css'; import 'devextreme/dist/css/dx.material.blue.light.compact.css'; -import type { DataChange } from 'devextreme/common/grids'; import DataGrid, { DataGridTypes, Column, Editing, PatternRule, RequiredRule, StringLengthRule, Toolbar, Item, } from 'devextreme-react/data-grid'; @@ -40,7 +39,7 @@ function App(): JSX.Element { } }, [validateVisibleRows]); - const onChangesChange = useCallback((changes: DataChange[]): void => { + const onChangesChange = useCallback((changes: DataGridTypes.DataChange[]): void => { setChanges(changes); }, []);