react-redactor 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- # Redactor
2
+ # [Redactor-Logo](./img/brand.png) | Redactor
3
3
 
4
4
  Redactor is a lightweight library for conditional rendering, context management, and navigation in React applications.
5
5
 
@@ -24,7 +24,7 @@ Wrap your app or part of it with the `BadgeProvider` to set a badge value.
24
24
 
25
25
  ```jsx
26
26
  import React from "react";
27
- import { useBadge, BadgeProvider } from "your-react-badge-module";
27
+ import { useBadge, BadgeProvider } from "react-redactor";
28
28
 
29
29
  function App() {
30
30
  return (
@@ -47,7 +47,7 @@ Use the `Protect` component to conditionally render components based on the badg
47
47
 
48
48
  ```jsx
49
49
  import React from "react";
50
- import { Protect } from "your-react-badge-module";
50
+ import { Protect } from "react-redactor";
51
51
 
52
52
  const ProceedComponent = () => <h1>Welcome!</h1>;
53
53
  const ReturnComponent = () => <h1>Access Denied!</h1>;
@@ -71,7 +71,7 @@ Redirect users based on a validation function.
71
71
 
72
72
  ```jsx
73
73
  import React from "react";
74
- import { useProtection } from "your-react-badge-module";
74
+ import { useProtection } from "react-redactor";
75
75
 
76
76
  function App() {
77
77
  const validationFunc = () => true; // Replace with your logic
package/img/brand.png ADDED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-redactor",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Redactor is a lightweight library for conditional rendering, context management, and navigation in React applications.",
5
5
  "main": "index.jsx",
6
6
  "scripts": {