@evergis/react 4.0.5 → 4.0.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/dist/index.js CHANGED
@@ -10674,9 +10674,10 @@ const useDashboardHeader = () => {
10674
10674
  const { children, options } = header || {};
10675
10675
  const { url } = options || {};
10676
10676
  const renderElement = useHeaderRender(header);
10677
- const image = React.useMemo(() => children?.some(({ id }) => id === "image")
10677
+ const imageUrl = React.useMemo(() => children?.some(({ id }) => id === "image")
10678
10678
  ? getResourceUrl(renderElement({ id: "image", wrap: false }))
10679
10679
  : null, [children, renderElement]);
10680
+ const image = useFetchImageWithAuth(imageUrl);
10680
10681
  const icon = React.useMemo(() => children?.some(({ id }) => id === "icon") ? (renderElement({ id: "icon", wrap: false })) : (jsxRuntime.jsx(uilibGl.Icon, { kind: "logo", style: { width: "2rem", height: "2rem" } })), [children, renderElement]);
10681
10682
  const title = React.useMemo(() => children?.some(({ id }) => id === "title")
10682
10683
  ? renderElement({ id: "title" })