mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-10 07:25:48 +01:00
🏗️ Migrate dashdot storage to tRPC
This commit is contained in:
@@ -11,7 +11,6 @@ interface DashDotGraphProps {
|
||||
dashDotUrl: string;
|
||||
usePercentages: boolean;
|
||||
info: DashDotInfo;
|
||||
widgetId: string;
|
||||
}
|
||||
|
||||
export const DashDotGraph = ({
|
||||
@@ -22,13 +21,12 @@ export const DashDotGraph = ({
|
||||
dashDotUrl,
|
||||
usePercentages,
|
||||
info,
|
||||
widgetId,
|
||||
}: DashDotGraphProps) => {
|
||||
const { t } = useTranslation('modules/dashdot');
|
||||
const { classes } = useStyles();
|
||||
|
||||
if (graph === 'storage' && isCompact) {
|
||||
return <DashDotCompactStorage info={info} widgetId={widgetId} />;
|
||||
return <DashDotCompactStorage info={info} url={dashDotUrl} />;
|
||||
}
|
||||
|
||||
if (graph === 'network' && isCompact) {
|
||||
|
||||
Reference in New Issue
Block a user