@tap-payments/os-micro-frontend-shared 0.1.246-test.4 → 0.1.246-test.5
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.
|
@@ -21,12 +21,12 @@ function BrandLogo(_a) {
|
|
|
21
21
|
const isPdf = useMemo(() => { var _a; return (_a = data === null || data === void 0 ? void 0 : data.type) === null || _a === void 0 ? void 0 : _a.includes('application/pdf'); }, [data]);
|
|
22
22
|
const logoUrl = useMemo(() => (data ? (window.URL ? URL : webkitURL).createObjectURL(data) : ''), [data]);
|
|
23
23
|
const imageSrc = useMemo(() => {
|
|
24
|
-
if (isError)
|
|
24
|
+
if (isError || !data)
|
|
25
25
|
return grayBrandIcon;
|
|
26
26
|
if (isPdf)
|
|
27
27
|
return pdfIcon;
|
|
28
28
|
return logoUrl;
|
|
29
|
-
}, [isError, isPdf, logoUrl]);
|
|
29
|
+
}, [data, isError, isPdf, logoUrl]);
|
|
30
30
|
if (isLoading)
|
|
31
31
|
return _jsx(Loading, { width: width, height: height });
|
|
32
32
|
return (_jsx(Icon, { alt: "brand", src: imageSrc, sx: Object.assign({ borderRadius: '50%', backgroundColor: theme.palette.common.white, width,
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tap-payments/os-micro-frontend-shared",
|
|
3
3
|
"description": "Shared components and utilities for Tap Payments micro frontends",
|
|
4
|
-
"version": "0.1.246-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.246-test.5",
|
|
5
|
+
"testVersion": 5,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|