Skip to content

Commit df96907

Browse files
PERUSSELdunglas
authored andcommitted
Update "Using Custom Components" section (#343)
1 parent f127c7f commit df96907

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

admin/getting-started.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,18 +79,18 @@ const myApiDocumentationParser = entrypoint => parseHydraDocumentation(entrypoin
7979
addField: true,
8080
addLabel: true
8181
};
82-
82+
8383
return { api };
8484
})
8585
;
8686

8787
export default (props) => (
88-
<HydraAdmin apiDocumentationParser={myApiDocumentationParser} entrypoint={entrypoint}/>
88+
<HydraAdmin apiDocumentationParser={myApiDocumentationParser} entrypoint={entrypoint} />
8989
);
9090
```
9191

92-
The `fieldComponent` property of the `Field` class allows to set the component used to render a property in list and show screens.
93-
The `inputComponent` property allows to set the component to use to render the input used in create and edit screens.
92+
The `field` property of the `Field` class allows to set the component used to render a property in list and show screens.
93+
The `input` property allows to set the component to use to render the input used in create and edit screens.
9494

9595
Any [field](https://marmelab.com/admin-on-rest/Fields.html) or [input](https://marmelab.com/admin-on-rest/Inputs.html) provided by the Admin On Rest library can be used.
9696

0 commit comments

Comments
 (0)