✨ Migrate tiles from id to type
This commit is contained in:
@@ -33,7 +33,7 @@ const useWidget = <T extends IWidget<string, any>>(widget: T): T => {
|
||||
};
|
||||
|
||||
export const WidgetWrapper = ({
|
||||
widgetType: widgetId,
|
||||
widgetType,
|
||||
widget,
|
||||
className,
|
||||
WidgetComponent,
|
||||
@@ -43,7 +43,7 @@ export const WidgetWrapper = ({
|
||||
return (
|
||||
<ErrorBoundary>
|
||||
<HomarrCardWrapper className={className}>
|
||||
<WidgetsMenu integration={widgetId} widget={widgetWithDefaultProps} />
|
||||
<WidgetsMenu integration={widgetType} widget={widgetWithDefaultProps} />
|
||||
<WidgetComponent widget={widgetWithDefaultProps} />
|
||||
</HomarrCardWrapper>
|
||||
</ErrorBoundary>
|
||||
|
||||
@@ -58,7 +58,7 @@ const useDashDotStorage = () => {
|
||||
'dashdot/storage',
|
||||
{
|
||||
configName,
|
||||
url: config?.widgets.find((x) => x.id === 'dashdot')?.properties.url,
|
||||
url: config?.widgets.find((x) => x.type === 'dashdot')?.properties.url,
|
||||
},
|
||||
],
|
||||
queryFn: () => fetchDashDotStorageLoad(configName),
|
||||
|
||||
Reference in New Issue
Block a user