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