admin_lsac 1.2.6 → 1.2.7

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.
Files changed (2) hide show
  1. package/README.md +6 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -12,17 +12,19 @@ Export-to-csv package latest version is not working properly, so make sure you h
12
12
 
13
13
  ## What do you need to import?
14
14
 
15
+ ### `import { ChakraProvider } from '@chakra-ui/react'`
16
+
15
17
  ### `import { pageToUrl } from 'admin_lsac'`
16
18
 
17
19
  ### `import { AdminPage } from 'admin_lsac'`
18
20
 
19
- You can import these 2 functions in App.js / App.ts. If your project is TypeScript-based, you need to write the following line as well:
21
+ You can import these in App.js / App.ts. If your project is TypeScript-based, you need to write the following line as well:
20
22
 
21
23
  ### `import { PageSchema } from 'admin_lsac'`
22
24
 
23
25
  * Import the component from above where you want to write your schemas. (See below for details about schemas)
24
26
 
25
- You need to create an array of schemas for your own admin panel. You can write the following inside your Routes tag from App.js / App.ts:
27
+ You need to create an array of schemas for your own admin panel. You can write the following inside your Routes component from App.js / App.ts:
26
28
 
27
29
  ```
28
30
  {your_array.map((page) => (
@@ -51,6 +53,8 @@ You need to create an array of schemas for your own admin panel. You can write t
51
53
  ) : null}
52
54
  ```
53
55
 
56
+ #### ⚠️ Don't forget to wrap the Router component into a ChakraProvider component.
57
+
54
58
  ## What is a schema?
55
59
 
56
60
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "admin_lsac",
3
- "version": "1.2.6",
3
+ "version": "1.2.7",
4
4
  "description": "Generic Admin Panel created for storing events' data",
5
5
  "private": false,
6
6
  "dependencies": {