Skip to content

Commit c81d8c3

Browse files
committed
metrics: use standard graph for cashflow for now
1 parent bbadbad commit c81d8c3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

clients/apps/web/src/components/Customer/CustomerPage.tsx

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ import {
3535
import Link from 'next/link'
3636
import React, { useMemo } from 'react'
3737
import { benefitsDisplayNames } from '../Benefit/utils'
38-
import CashflowChart from '../Metrics/CashflowChart'
3938
import MetricChartBox from '../Metrics/MetricChartBox'
4039
import { DetailRow } from '../Shared/DetailRow'
4140
import { CustomerStatBox } from './CustomerStatBox'
@@ -75,8 +74,10 @@ export const CustomerPage: React.FC<CustomerPageProps> = ({
7574
const { data: customerBalance, isLoading: balanceLoading } =
7675
useCustomerBalance(customer.id)
7776

78-
const [selectedMetric, setSelectedMetric] =
79-
React.useState<keyof schemas['Metrics']>('revenue')
77+
const [selectedMetric, setSelectedMetric] = React.useState<
78+
keyof schemas['Metrics']
79+
>(organization.feature_settings?.revops_enabled ? 'cashflow' : 'revenue')
80+
8081
const [startDate, endDate, interval] = React.useMemo(
8182
() => getChartRangeParams('all_time', customer.created_at),
8283
[customer.created_at],
@@ -186,13 +187,15 @@ export const CustomerPage: React.FC<CustomerPageProps> = ({
186187
</CustomerStatBox>
187188
</div>
188189

189-
{organization.feature_settings?.revops_enabled && (
190+
{/** Disabling this for now until we're satisfied with the layout/presentation design */}
191+
192+
{/** organization.feature_settings?.revops_enabled && (}
190193
<CashflowChart
191194
organizationId={organization.id}
192195
customerId={customer.id}
193196
customerCreatedAt={customer.created_at}
194197
/>
195-
)}
198+
) */}
196199

197200
<MetricChartBox
198201
metric={selectedMetric}

0 commit comments

Comments
 (0)