@trycourier/react-hooks 6.0.1-internal.1ab67ae.0 → 6.0.1-internal.1e0f6ce.0

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
@@ -201,7 +201,7 @@ const MyInbox = () => {
201
201
  <Container>
202
202
  {inbox.messages.map((message) => {
203
203
  return (
204
- <Message>
204
+ <Message message={message}>
205
205
  {message.read ? (
206
206
  <>
207
207
  <button onClick={handleUnreadMessage(message)}>
@@ -63,26 +63,16 @@ var usePreferencesActions = function usePreferencesActions() {
63
63
  }
64
64
  },
65
65
  updateRecipientPreferences: function () {
66
- var _updateRecipientPreferences = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(payload) {
66
+ var _updateRecipientPreferences = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_payload) {
67
67
  return _regenerator["default"].wrap(function _callee$(_context) {
68
68
  while (1) {
69
69
  switch (_context.prev = _context.next) {
70
70
  case 0:
71
71
  dispatch({
72
72
  type: "preferences/UPDATE_RECIPIENT_PREFERENCES",
73
- payload: function (_payload) {
74
- function payload() {
75
- return _payload.apply(this, arguments);
76
- }
77
-
78
- payload.toString = function () {
79
- return _payload.toString();
80
- };
81
-
82
- return payload;
83
- }(function () {
84
- return preferences.updateRecipientPreferences(payload);
85
- })
73
+ payload: function payload() {
74
+ return preferences.updateRecipientPreferences(_payload);
75
+ }
86
76
  });
87
77
 
88
78
  case 1:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trycourier/react-hooks",
3
- "version": "6.0.1-internal.1ab67ae.0+1ab67ae",
3
+ "version": "6.0.1-internal.1e0f6ce.0+1e0f6ce",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "typings/index.d.ts",
@@ -20,8 +20,8 @@
20
20
  "concat-md": "^0.3.5"
21
21
  },
22
22
  "dependencies": {
23
- "@trycourier/client-graphql": "^6.0.1-internal.1ab67ae.0+1ab67ae",
24
- "@trycourier/core": "^6.0.1-internal.1ab67ae.0+1ab67ae",
23
+ "@trycourier/client-graphql": "^6.0.1-internal.1e0f6ce.0+1e0f6ce",
24
+ "@trycourier/core": "^6.0.1-internal.1e0f6ce.0+1e0f6ce",
25
25
  "deep-extend": "^0.6.0",
26
26
  "rimraf": "^3.0.2"
27
27
  },
@@ -46,5 +46,5 @@
46
46
  },
47
47
  "./use-inbox": "./dist/inbox/use-inbox.js"
48
48
  },
49
- "gitHead": "1ab67aecb50820f4e13f8954d0217e258a1453f0"
49
+ "gitHead": "1e0f6ce4dee7fe62a5cd45736a08b73799659773"
50
50
  }