Skip to content

Commit

Permalink
regenerate chat.ts to catch up with recent changes
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyStrelyaev committed Oct 22, 2024
1 parent ab9af1e commit 2c21d42
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions packages/devextreme-react/src/chat.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,16 +97,19 @@ type IErrorProps = React.PropsWithChildren<{
id?: number | string;
message?: string;
}>
const _componentError = memo(
(props: IErrorProps) => {
return React.createElement(NestedOption<IErrorProps>, { ...props });
}
);

const Error: typeof _componentError & IElementDescriptor = Object.assign(_componentError, {
OptionName: "errors",
IsCollectionItem: true,
})
const _componentError = (props: IErrorProps) => {
return React.createElement(NestedOption<IErrorProps>, {
...props,
elementDescriptor: {
OptionName: "errors",
IsCollectionItem: true,
},
});
};

const Error = Object.assign<typeof _componentError, NestedComponentMeta>(_componentError, {
componentType: "option",
});

// owners:
// Chat
Expand Down

0 comments on commit 2c21d42

Please sign in to comment.