Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(react-core): fix types for react 18 (T1130302) #3604

Merged
merged 3 commits into from
Nov 30, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/dx-react-chart/src/plugins/basic-data.tsx
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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