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