Skip to content

Commit

Permalink
chore: fix vrt's
Browse files Browse the repository at this point in the history
  • Loading branch information
UnderKoen committed Feb 1, 2025
1 parent 65b01b9 commit 83ab62c
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions packages/desktop-client/src/components/reports/disabledList.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { t } from 'i18next';

import { type sortByOpType } from 'loot-core/types/models';

const intervalOptions = [
{
description: t('Daily'),
Expand Down Expand Up @@ -48,7 +50,7 @@ type graphOptions = {
defaultSplit: string;
disabledType: string[];
defaultType: string;
defaultSort: string;
defaultSort: sortByOpType;
disableLegend?: boolean;
disableLabel?: boolean;
disableSort?: boolean;
Expand All @@ -62,15 +64,15 @@ const totalGraphOptions: graphOptions[] = [
defaultType: 'Payment',
disableLegend: true,
disableLabel: true,
defaultSort: 'Budget',
defaultSort: 'budget',
},
{
description: 'BarGraph',
disabledSplit: [],
defaultSplit: 'Category',
disabledType: [],
defaultType: 'Payment',
defaultSort: 'Descending',
defaultSort: 'desc',
},
{
description: 'AreaGraph',
Expand All @@ -80,15 +82,15 @@ const totalGraphOptions: graphOptions[] = [
defaultType: 'Payment',
disableLegend: true,
disableSort: true,
defaultSort: 'Descending',
defaultSort: 'desc',
},
{
description: 'DonutGraph',
disabledSplit: [],
defaultSplit: 'Category',
disabledType: ['Net'],
defaultType: 'Payment',
defaultSort: 'Descending',
defaultSort: 'desc',
},
];

Expand All @@ -102,7 +104,7 @@ const timeGraphOptions: graphOptions[] = [
disableLegend: true,
disableLabel: true,
disableSort: true,
defaultSort: 'Descending',
defaultSort: 'desc',
},
{
description: 'StackedBarGraph',
Expand All @@ -111,7 +113,7 @@ const timeGraphOptions: graphOptions[] = [
disabledType: [],
defaultType: 'Payment',
disableSort: true,
defaultSort: 'Descending',
defaultSort: 'desc',
},
{
description: 'LineGraph',
Expand All @@ -122,7 +124,7 @@ const timeGraphOptions: graphOptions[] = [
disableLegend: false,
disableLabel: true,
disableSort: true,
defaultSort: 'Descending',
defaultSort: 'desc',
},
];

Expand Down

0 comments on commit 83ab62c

Please sign in to comment.