@tap-payments/os-micro-frontend-shared 0.1.170-test.2 → 0.1.170-test.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.
|
@@ -30,7 +30,6 @@ function SegmentsCell(_a) {
|
|
|
30
30
|
const sourceTooltip = segment.tooltip || getSegmentTooltip(segment);
|
|
31
31
|
const segmentType = segment.type;
|
|
32
32
|
const icon = isPlatformSegment ? segmentsIcons.platform : segmentsIcons[segmentType];
|
|
33
|
-
console.log(segment.icon, icon);
|
|
34
33
|
return (_jsx(Tooltip, Object.assign({ onOpen: () => {
|
|
35
34
|
setIsTooltipOpen(true);
|
|
36
35
|
}, onClose: () => {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SegmentInfo } from './type';
|
|
2
|
-
export declare const getSegmentTooltip: (segment: SegmentInfo) => string;
|
|
2
|
+
export declare const getSegmentTooltip: (segment: SegmentInfo) => string | undefined;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import { capitalizeString } from '../../../../utils/index.js';
|
|
2
1
|
export const getSegmentTooltip = (segment) => {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
2
|
+
// TODO: uncomment when Backend fixes the segment.type
|
|
3
|
+
// let prefixKey = ''
|
|
4
|
+
// switch (segment.type) {
|
|
5
|
+
// case 'technology':
|
|
6
|
+
// case 'institution':
|
|
7
|
+
// prefixKey = 'Payment'
|
|
8
|
+
// break
|
|
9
|
+
// default:
|
|
10
|
+
// prefixKey = ''
|
|
11
|
+
// break
|
|
12
|
+
// }
|
|
13
|
+
// return `${prefixKey} ${capitalizeString(segment.type)} - ${segment.name}`
|
|
14
|
+
return segment.name;
|
|
14
15
|
};
|
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.170-test.
|
|
5
|
-
"testVersion":
|
|
4
|
+
"version": "0.1.170-test.3",
|
|
5
|
+
"testVersion": 3,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"module": "build/index.js",
|