galadrim-feedback 0.0.61 → 0.0.63

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 CHANGED
@@ -7,15 +7,36 @@ yarn add galadrim-feedback axios
7
7
 
8
8
  ajouter "babel-plugin-react-generate-paths" comme plugin babel
9
9
 
10
+ par exemple dans vite.config.ts
11
+
12
+ import { defineConfig } from "vite";
13
+ import react from "@vitejs/plugin-react";
14
+
15
+ export default defineConfig({
16
+ plugins: [
17
+ react({
18
+ babel: {
19
+ plugins: [["babel-plugin-react-generate-paths"]],
20
+ },
21
+ }),
22
+ ],
23
+ });
24
+
25
+ ou dans .babelrc
26
+
27
+ {
28
+ "plugins": ["babel-plugin-react-generate-paths"]
29
+ }
30
+
10
31
  add the FeedbackRoot to the root of your app (it needs to be inside the router)
11
32
 
12
33
  import FeedbackRoot from "galadrim-feedback";
13
- import "galadrim-feedback/dist/styles.css";
34
+ import "galadrim-feedback/dist/styles.css"; // don't forget to import the styles
14
35
 
15
36
  add the following props to the FeedbackRoot component :
16
37
  <FeedbackRoot
17
38
  rootDir="/path/to/your/project"
18
- projectId="your-project-id"
39
+ projectId="your-project-id" // the id of the project in galadmin
19
40
  navigate={(path) => navigate(path)}
20
41
  />
21
42