@tnf-dev/react 1.0.1-11 → 1.0.1-12

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 +2 -2
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -25,14 +25,14 @@ You can also use the `useNotifications` hook to access notifications and methods
25
25
  import { useNotifications } from '@tnf-dev/react';
26
26
 
27
27
  function NotificationsComponent() {
28
- const { notifications, markAsRead } = useNotifications();
28
+ const { notifications } = useNotifications();
29
29
 
30
30
  return (
31
31
  <div>
32
32
  {notifications.map((notification) => (
33
33
  <div key={notification.id}>
34
34
  <p>{notification.message}</p>
35
- <button onClick={() => markAsRead(notification.id)}>Mark as Read</button>
35
+ <button onClick={notification.markAsRead}>Mark as Read</button>
36
36
  </div>
37
37
  ))}
38
38
  </div>
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  ]
14
14
  },
15
15
  "dependencies": {
16
- "@tnf-dev/js": "1.0.1-11",
16
+ "@tnf-dev/js": "1.0.1-12",
17
17
  "react": "^19.1.0",
18
18
  "react-dom": "^19.1.0",
19
19
  "react-infinite-scroller": "^1.2.6",
@@ -87,5 +87,5 @@
87
87
  "sideEffects": false,
88
88
  "type": "module",
89
89
  "types": "./dist/esm/index.d.ts",
90
- "version": "1.0.1-11"
90
+ "version": "1.0.1-12"
91
91
  }