Skip to content

Commit

Permalink
regenerate map wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
VasilyStrelyaev committed Sep 26, 2024
1 parent 9914dd8 commit a829759
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/devextreme-react/src/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,18 @@ type IProviderConfigProps = React.PropsWithChildren<{
mapId?: string;
useAdvancedMarkers?: boolean;
}>
const _componentProviderConfig = memo(
(props: IProviderConfigProps) => {
return React.createElement(NestedOption<IProviderConfigProps>, { ...props });
}
);
const _componentProviderConfig = (props: IProviderConfigProps) => {
return React.createElement(NestedOption<IProviderConfigProps>, {
...props,
elementDescriptor: {
OptionName: "providerConfig",
},
});
};

const ProviderConfig: typeof _componentProviderConfig & IElementDescriptor = Object.assign(_componentProviderConfig, {
OptionName: "providerConfig",
})
const ProviderConfig = Object.assign<typeof _componentProviderConfig, NestedComponentMeta>(_componentProviderConfig, {
componentType: "option",
});

// owners:
// Map
Expand Down

0 comments on commit a829759

Please sign in to comment.