@moraby/app-launcher 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -104,6 +104,10 @@ function AdminLauncher() {
|
|
|
104
104
|
|
|
105
105
|
return (
|
|
106
106
|
<>
|
|
107
|
+
{/*
|
|
108
|
+
IMPORTANT: 'renderFooter' is required to show the Settings button!
|
|
109
|
+
Without it, the launcher will just show the apps list (which might be empty).
|
|
110
|
+
*/}
|
|
107
111
|
<AppLauncher
|
|
108
112
|
apps={apps}
|
|
109
113
|
renderFooter={() => <button onClick={() => setShowSettings(true)}>Settings</button>}
|
|
@@ -124,6 +128,8 @@ function AdminLauncher() {
|
|
|
124
128
|
}
|
|
125
129
|
```
|
|
126
130
|
|
|
131
|
+
**Note:** If you forget `renderFooter`, there will be no button to open the settings!
|
|
132
|
+
|
|
127
133
|
## Configuration JSON Format
|
|
128
134
|
|
|
129
135
|
Export your configuration from the admin app and host it as a JSON file:
|