mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Fix PR feedback
Signed-off-by: soupette <cyril.lpz@gmail.com>
This commit is contained in:
parent
f6d8f51df3
commit
4153fe9b7b
@ -80,11 +80,11 @@ export default strapi => {
|
||||
};
|
||||
```
|
||||
|
||||
At this point, the plugin creates a new section (**_Super cool setting_**) which will contains two links `Setting page 1` and `Setting page 2` these links doesn't point to any component as the corresponding as not been declared yet.
|
||||
At this point, the plugin creates a new section (**_Super cool setting_**) which will contains two links `Setting page 1` and `Setting page 2` these links don't point to any component as the corresponding one as not been declared yet.
|
||||
|
||||
### Declaring the setting Component
|
||||
|
||||
The exported Setting component which receives `settingsBaseURL` as props in order to generate a dynamic routing which should be used to associated the two endpoints created with their corresponding components.
|
||||
The exported Setting component which receives `settingsBaseURL` as props in order to generate a dynamic routing which should be used to associate the two endpoints created with their corresponding components.
|
||||
|
||||
With the configuration from above we could easily create our plugin Settings view.
|
||||
|
||||
|
||||
@ -183,7 +183,7 @@ export class Admin extends React.Component {
|
||||
render={props => this.renderRoute(props, Marketplace)}
|
||||
/>
|
||||
<Route
|
||||
path="/settings/:settingId"
|
||||
path={`${SETTINGS_BASE_URL}/:settingId`}
|
||||
render={props => this.renderRoute(props, SettingsPage)}
|
||||
/>
|
||||
<Route
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user