@learningpool/ui 1.19.2 → 1.19.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.
|
@@ -68,7 +68,7 @@ const AppHub = (props) => {
|
|
|
68
68
|
console.log('No data available');
|
|
69
69
|
return null;
|
|
70
70
|
}
|
|
71
|
-
return (_jsxs(AppHubPanel, { role: isPageLayout ? 'main' : '', style: { marginRight: isAppSwitcher ? '2rem' : 0 }, children: [!hasPromotionalCampaigns &&
|
|
71
|
+
return (_jsxs(AppHubPanel, { role: isPageLayout ? 'main' : '', style: { marginRight: isAppSwitcher ? '2rem' : 0 }, children: [!hasPromotionalCampaigns && !isAppSwitcher &&
|
|
72
72
|
_jsx(AppHubTitle, { component: isPageLayout ? 'h1' : 'div', style: { marginLeft: '1.5rem' }, children: _jsx(WelcomeBanner, { welcomeMessage: messages['stream-hub-welcome'], userName: userName, userOrganization: userOrganization }) }), data && data.map((row, rowIndex) => renderRow(row, rowIndex))] }));
|
|
73
73
|
};
|
|
74
74
|
export default AppHub;
|
|
@@ -38,5 +38,5 @@ export const renderBannerAdvertRow = (rowData, rowIndex) => {
|
|
|
38
38
|
eventTypeId: HubEventTypeID.REQUEST_DEMO,
|
|
39
39
|
referenceId: item.name,
|
|
40
40
|
url: addUtmParams(item.basePromoUrl, 'hub', 'hub_dashboard_banner_advert', item.name)
|
|
41
|
-
}), children: _jsx(StyledAdvertImage, { src: item.hubImageUrl, alt: item.altText || defaultMessages['banner-image-alt-text'], onError: handleImageError }) }) }) }, index))), _jsx(AppHubTitle, { component: 'h1', style: { marginTop: '2rem' }, children: _jsx(WelcomeBanner, { welcomeMessage: welcomeMessage, userName: userName, userOrganization: userOrganization }) })] }) }, `row_${rowIndex}`));
|
|
41
|
+
}), children: _jsx(StyledAdvertImage, { src: item.hubImageUrl, alt: item.altText || defaultMessages['banner-image-alt-text'], onError: handleImageError }) }) }) }, index))), !isAppSwitcher && _jsx(AppHubTitle, { component: 'h1', style: { marginTop: '2rem' }, children: _jsx(WelcomeBanner, { welcomeMessage: welcomeMessage, userName: userName, userOrganization: userOrganization }) })] }) }, `row_${rowIndex}`));
|
|
42
42
|
};
|
|
@@ -54,9 +54,11 @@ export const AppSwitcherFooterPanel = styled(Box) `
|
|
|
54
54
|
width: ${panelWidth};
|
|
55
55
|
`;
|
|
56
56
|
export const AppSwitcherHeader = styled(Typography) `
|
|
57
|
+
display: flex;
|
|
57
58
|
font-size: 1.5rem;
|
|
58
59
|
font-weight: 400;
|
|
59
60
|
margin: 1rem;
|
|
61
|
+
text-wrap: auto;
|
|
60
62
|
`;
|
|
61
63
|
export const AppSwitcherCloseButton = styled(CloseIcon) `
|
|
62
64
|
font-size: 2rem;
|
package/package.json
CHANGED
package/utils/helpers.js
CHANGED
|
@@ -120,7 +120,7 @@ export const useFadeAndMoveIn = (delayOrder, reverse = false) => {
|
|
|
120
120
|
*/
|
|
121
121
|
export const handleHubTracking = async ({ hubApiUrl, apiKey, token, isAppSwitcher, eventTypeId, referenceId, url }) => {
|
|
122
122
|
const { hostname } = window.location;
|
|
123
|
-
if (hostname === 'localhost'
|
|
123
|
+
if (hostname === 'localhost') {
|
|
124
124
|
console.log('Send tracking to Hub', { isHub: !isAppSwitcher, eventTypeId, referenceId, url });
|
|
125
125
|
return;
|
|
126
126
|
}
|