@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 +2 -1
- package/dist/index.js.map +1 -1
- package/dist/react.esm.js +2 -1
- package/dist/react.esm.js.map +1 -1
- package/package.json +2 -2
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
|
|
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" })
|