diff --git a/packages/react-sdk-components/src/components/designSystemExtension/Banner/Banner.tsx b/packages/react-sdk-components/src/components/designSystemExtension/Banner/Banner.tsx index bf7d6c5e..48ee5335 100644 --- a/packages/react-sdk-components/src/components/designSystemExtension/Banner/Banner.tsx +++ b/packages/react-sdk-components/src/components/designSystemExtension/Banner/Banner.tsx @@ -38,7 +38,10 @@ export default function Banner(props: BannerProps) { - + {a} diff --git a/packages/react-sdk-components/src/components/template/AppShell/AppShell.tsx b/packages/react-sdk-components/src/components/template/AppShell/AppShell.tsx index cbd1c194..4874e293 100644 --- a/packages/react-sdk-components/src/components/template/AppShell/AppShell.tsx +++ b/packages/react-sdk-components/src/components/template/AppShell/AppShell.tsx @@ -81,7 +81,7 @@ export default function AppShell(props: PropsWithChildren) { const classes = useStyles(); const actionsAPI = pConn.getActionsApi(); const localeReference = pConn.getValue('.pyLocaleReference', ''); // 2nd arg empty string until typedef marked correctly - const [imageBlobUrl, setImageBlobUrl] = useState(null); + const [imageBlobUrl, setImageBlobUrl] = useState(null); // useState for appName and mapChildren - note these are ONLY updated once (on component mount!) // eslint-disable-next-line @typescript-eslint/no-unused-vars const [appName, setAppName] = useState(''); @@ -133,8 +133,8 @@ export default function AppShell(props: PropsWithChildren) { } }, []); - const [iconURL, setIconURL] = useState(''); - const [fullIconURL, setFullIconURL] = useState(''); + const [iconURL, setIconURL] = useState(''); + const [fullIconURL, setFullIconURL] = useState(''); useEffect(() => { // using the default icon then fetch it from the static folder (not auth involved) if ( @@ -150,8 +150,7 @@ export default function AppShell(props: PropsWithChildren) { // not using default icon to fetch it using the way which uses authentication else { PCore.getAssetLoader() - .getSvcImage(portalLogo) - .then(blob => window.URL.createObjectURL(blob)) + .getSvcImageUrl(portalLogo) .then(data => { setIconURL(data); setFullIconURL(data); @@ -165,8 +164,7 @@ export default function AppShell(props: PropsWithChildren) { useEffect(() => { if (imageKey && portalTemplate === 'wss') { PCore.getAssetLoader() - .getSvcImage(imageKey) - .then(blob => window.URL.createObjectURL(blob)) + .getSvcImageUrl(imageKey) .then(imagePath => setImageBlobUrl(imagePath)); } }, []); diff --git a/packages/react-sdk-components/src/components/template/WssNavBar/WssNavBar.tsx b/packages/react-sdk-components/src/components/template/WssNavBar/WssNavBar.tsx index 5801a445..bbd8b4ca 100644 --- a/packages/react-sdk-components/src/components/template/WssNavBar/WssNavBar.tsx +++ b/packages/react-sdk-components/src/components/template/WssNavBar/WssNavBar.tsx @@ -36,8 +36,8 @@ const useStyles = makeStyles(theme => ({ marginRight: theme.spacing(2) }, appListLogo: { - width: '3.6rem', - filter: 'var(--svg-color)' + width: '100%', + height: '100%' }, appName: { marginLeft: theme.spacing(2), @@ -84,8 +84,8 @@ export default function WssNavBar(props: WssNavBarProps) { return (