@@ -35,7 +35,6 @@ import {
3535import Link from 'next/link'
3636import React , { useMemo } from 'react'
3737import { benefitsDisplayNames } from '../Benefit/utils'
38- import CashflowChart from '../Metrics/CashflowChart'
3938import MetricChartBox from '../Metrics/MetricChartBox'
4039import { DetailRow } from '../Shared/DetailRow'
4140import { 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