@bloom-housing/ui-components 7.0.2 → 7.0.3

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [7.0.3](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@7.0.2...@bloom-housing/ui-components@7.0.3) (2022-11-16)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * support jsx in EventSection, QuantityRowSection ([#3170](https://github.com/bloom-housing/bloom/issues/3170)) ([6370616](https://github.com/bloom-housing/bloom/commit/637061643473f1167d1dccc5e76b7c57c1272bc0))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [7.0.2](https://github.com/bloom-housing/bloom/compare/@bloom-housing/ui-components@7.0.2-alpha.1...@bloom-housing/ui-components@7.0.2) (2022-11-14)
7
18
 
8
19
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "7.0.2",
3
+ "version": "7.0.3",
4
4
  "author": "Sean Albert <sean.albert@exygy.com>",
5
5
  "description": "Shared user interface components for Bloom affordable housing system",
6
6
  "homepage": "https://github.com/bloom-housing/bloom/tree/master/shared/ui-components",
@@ -112,5 +112,5 @@
112
112
  "ts-jest": "^26.4.1",
113
113
  "typesafe-actions": "^5.1.0"
114
114
  },
115
- "gitHead": "e1559905459e5b2fc21a391ca6df6fa597601e9e"
115
+ "gitHead": "172374bbbbdfeb6bba23547f177eadcd8acde40d"
116
116
  }
@@ -39,7 +39,13 @@ const QuantityRowSection = ({ quantityRows, strings }: QuantityRowSectionProps)
39
39
  </Heading>
40
40
  <div>
41
41
  {strings.description && (
42
- <p className="text-tiny text-gray-800 pb-3">{strings.description}</p>
42
+ <div className="text-tiny text-gray-800 pb-3">
43
+ {typeof strings.description === "string" ? (
44
+ <p>{strings.description}</p>
45
+ ) : (
46
+ strings.description
47
+ )}
48
+ </div>
43
49
  )}
44
50
  {quantityRows.length && <ul>{quantityRows.map((row) => getRow(row))}</ul>}
45
51
  </div>
@@ -53,9 +53,11 @@ const EventSection = (props: EventSectionProps) => {
53
53
  </p>
54
54
  )}
55
55
  {event.note && (
56
- <p className={`text-tiny text-gray-700 ${index !== props.events.length - 1 && "pb-3"}`}>
57
- {event.note}
58
- </p>
56
+ <div
57
+ className={`text-tiny text-gray-700 ${index !== props.events.length - 1 && "pb-3"}`}
58
+ >
59
+ {typeof event.note === "string" ? <p>{event.note}</p> : event.note}
60
+ </div>
59
61
  )}
60
62
  </div>
61
63
  ))}