Skip to content

Commit

Permalink
fix(react-core): fix types for react 18 (T1130302) (#3604)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krijovnick committed Nov 30, 2022
1 parent 6cf4bc6 commit 2930d7c
Show file tree
Hide file tree
Showing 18 changed files with 1,349 additions and 1,349 deletions.
2 changes: 1 addition & 1 deletion packages/dx-react-chart/src/plugins/basic-data.tsx
Expand Up @@ -5,7 +5,7 @@ import { BasicDataProps } from '../types';

const series = [];

export const BasicData: React.SFC<BasicDataProps> = ({ data, rotated }) => (
export const BasicData: React.FunctionComponent<BasicDataProps> = ({ data, rotated }) => (
<Plugin name="Basis">
<Getter name="data" value={data} />
<Getter name="domains" value={defaultDomains} />
Expand Down
2 changes: 1 addition & 1 deletion packages/dx-react-chart/src/plugins/component-layout.tsx
Expand Up @@ -4,7 +4,7 @@ import {
} from '@devexpress/dx-chart-core';
import { Plugin, Template, TemplatePlaceholder } from '@devexpress/dx-react-core';

export const ComponentLayout: React.SFC = () => (
export const ComponentLayout: React.FunctionComponent = () => (
<Plugin name="ComponentLayout">
<Template name="canvas">
<div id={`${TOP}-container`} style={{ display: 'flex', flexDirection: 'row' }}>
Expand Down
Expand Up @@ -11,7 +11,7 @@ class TestWrapper extends React.Component {
}
TestWrapper.contextType = PositionContext;

const Test: React.SFC<{ position: any }> = () => null;
const Test: React.FunctionComponent<{ position: any }> = () => null;

describe('PluginIndexer', () => {
it('should correctly determine plugin position', () => {
Expand Down
Expand Up @@ -21,7 +21,7 @@ const tableColumnExtensions: Table.ColumnExtension[] = [
{ columnName: 'gender', width: 100 },
];

const Demo: React.SFC = () => {
const Demo: React.FunctionComponent = () => {
return (
<<%&wrapperTag%><%&wrapperAttributes%>>
<Grid
Expand Down

0 comments on commit 2930d7c

Please sign in to comment.