🏗️ Migrate dashdot storage to tRPC

This commit is contained in:
Meier Lukas
2023-06-10 13:26:33 +02:00
parent 05e01286d4
commit b1adcf673f
4 changed files with 30 additions and 31 deletions

View File

@@ -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) {