@onehat/ui 0.3.79 → 0.3.80

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/ui",
3
- "version": "0.3.79",
3
+ "version": "0.3.80",
4
4
  "description": "Base UI for OneHat apps",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -187,7 +187,7 @@ export default function GridRow(props) {
187
187
  variant="ghost"
188
188
  w={30}
189
189
  alignSelf="center"
190
- ml={3}
190
+ mx={3}
191
191
  />}
192
192
  </Row>;
193
193
  }, [
@@ -0,0 +1,14 @@
1
+ export default function parseNotification(notification) {
2
+ if (notification.notification) {
3
+ notification = notification.notification;
4
+ }
5
+ const
6
+ body = notification?.request?.content?.body,
7
+ title = notification?.request?.content?.title,
8
+ data = notification?.request?.content?.data;
9
+ return {
10
+ body,
11
+ title,
12
+ data,
13
+ };
14
+ };