@campxdev/shared 1.11.5 → 1.11.6
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
|
@@ -118,7 +118,7 @@ export default function ReportHeader({
|
|
|
118
118
|
src={
|
|
119
119
|
reportHeaderImageUrl ||
|
|
120
120
|
current?.reportHeader?.url ||
|
|
121
|
-
masterInstitution
|
|
121
|
+
masterInstitution?.reportHeader?.url
|
|
122
122
|
}
|
|
123
123
|
/>
|
|
124
124
|
</>
|
|
@@ -142,19 +142,23 @@ export default function ReportHeader({
|
|
|
142
142
|
sx={recognitionDetailsSx}
|
|
143
143
|
>
|
|
144
144
|
{recognitionDetailsText ||
|
|
145
|
-
current
|
|
146
|
-
masterInstitution
|
|
145
|
+
current?.recognitionDetails ||
|
|
146
|
+
masterInstitution?.recognitionDetails ||
|
|
147
|
+
''}
|
|
147
148
|
</Typography>
|
|
148
149
|
)}
|
|
149
150
|
{!hideAddress && (
|
|
150
151
|
<Typography variant={addressVariant} sx={addressSx}>
|
|
151
|
-
{addressText ||
|
|
152
|
+
{addressText ||
|
|
153
|
+
current?.address ||
|
|
154
|
+
masterInstitution?.address ||
|
|
155
|
+
''}
|
|
152
156
|
</Typography>
|
|
153
157
|
)}
|
|
154
158
|
{!hidePhone && (
|
|
155
159
|
<Typography variant={phoneVariant} sx={phoneSx}>
|
|
156
160
|
{'Phone: ' +
|
|
157
|
-
(phoneText || current
|
|
161
|
+
(phoneText || current?.phone || masterInstitution?.phone)}
|
|
158
162
|
</Typography>
|
|
159
163
|
)}
|
|
160
164
|
</>
|
|
@@ -168,8 +172,8 @@ export default function ReportHeader({
|
|
|
168
172
|
/>
|
|
169
173
|
)}
|
|
170
174
|
{typographyList &&
|
|
171
|
-
typographyList.map((s) => (
|
|
172
|
-
<Typography variant={s.variant || 'body1'} sx={s.sx}>
|
|
175
|
+
typographyList.map((s, index) => (
|
|
176
|
+
<Typography key={index} variant={s.variant || 'body1'} sx={s.sx}>
|
|
173
177
|
{s.text}
|
|
174
178
|
</Typography>
|
|
175
179
|
))}
|