Skip to content

Commit f2df97b

Browse files
feat: Update readme
1 parent 823d1e5 commit f2df97b

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
## 1.3.0
5+
## 1.2.1
66

77
### Fixed
88

99
- Fixed styles for tab filters
10-
- Resolved multiple verify token calls
10+
- Restricted redundant verify token calls to avoid unnecessary network requests and enhance overall efficiency.
1111

1212
## 1.2.0
1313

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,11 +265,11 @@ function MyComponent() {
265265

266266
Functions | Parameters | Type | Description |
267267
----------|------------|-------|------------|
268-
markAsReadByDate | startDate | ISO date string | Sets the read status of notifications to true until the given date |
268+
markAsReadByDate | options | { startDate: ISO date string, <br>isRead?: boolean } | Sets the read status of notifications until the given start date. <br> isRead filters notifications based on their read status. |
269269
markAsReadById | id | string | Set read status of a notification to true |
270-
deleteById | id | string | Delete a notification by id |
271-
deleteByDate | startDate | ISO date string | Delete all notifications until given date |
272-
markAllAsViewed | startDate | ISO date string |Sets the viewed status of notifications to true until the given date |
270+
deleteById | id, shouldUpdateList | id: string, <br>shouldUpdateList?: boolean | Delete a notification by id |
271+
deleteByDate | options | { startDate: ISO date string, <br>isRead?: boolean } | Delete all notifications until given start date. <br> isRead filters notifications based on their read status. |
272+
markAllAsViewed | untilDate | ISO date string |Sets the viewed status of notifications to true until the given date |
273273

274274

275275
## Example

example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"react": "^18.2.0",
77
"react-dom": "^18.2.0",
88
"react-scripts": "^5.0.1",
9-
"@sirenapp/react-inbox": "^1.3.0"
9+
"@sirenapp/react-inbox": "^1.2.1"
1010
},
1111
"scripts": {
1212
"dev": "PORT=9902 react-scripts start",

0 commit comments

Comments
 (0)