From e9ea96893327c183e1f19ae7089edf4d9f585bd2 Mon Sep 17 00:00:00 2001 From: Guido Scialfa Date: Sun, 18 Feb 2024 21:55:26 +0100 Subject: [PATCH] Update Control Option Document The code sample was having incorrect highlights --- docs/control-option.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/control-option.md b/docs/control-option.md index f43b84c..8dbc08d 100644 --- a/docs/control-option.md +++ b/docs/control-option.md @@ -61,7 +61,7 @@ searchEntities: async ( Then you can access the extra properties within your component since the `CompositeEntitiesByKind` will pass the `entities` of type `EntitiesSearch.BaseControl< E >` to the children. -```typescript +```jsx (entities: EntitiesSearch.BaseControl< E >) => { return ; } @@ -69,7 +69,7 @@ the `entities` of type `EntitiesSearch.BaseControl< E >` to the children. And internally of your `MyComponent` you can access the `extra` property of the `ControlOption`: -```typescript +```jsx function MyComponent(entities: Options): JSX.Element { return (