refactor period (rolling/calender) to periodType

This commit is contained in:
2026-05-01 17:15:16 +05:30
parent 1daa90d091
commit e82cad4f21
3 changed files with 5 additions and 5 deletions

View File

@@ -139,8 +139,8 @@ export default function DashboardView({
title={section.title}
accentColor={colors.primary}
colorScheme={colors}
period={period}
onPeriodChange={(p: any) => setState(prev => ({ ...prev, period: p }))}
periodType={period}
onPeriodTypeChange={(p: any) => setState(prev => ({ ...prev, period: p }))}
comparison={comparison}
setComparison={(c: any) => setState(prev => ({ ...prev, comparison: c }))}
/>