File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/helpers/pdfs/monthly-cost Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 11import { createCanvas } from 'canvas' ;
22import Chart from 'chart.js/auto' ;
33import { tailwindToCSS } from 'tw-to-css' ;
4- import CostSummary from '@/components/private-cloud/CostSummary' ;
54import { getMonthlyCostChartConfig } from '@/components/private-cloud/monthly-cost/monthly-cost-chart-data' ;
65import MonthlyCostSummary from '@/components/private-cloud/monthly-cost/MonthlyCostSummary' ;
76import MonthlyCostTable from '@/components/private-cloud/monthly-cost/MonthlyCostTable' ;
87import { WeasyPrint } from '@/services/weasyprint/client' ;
9- import { MonthlyCost , PrivateCloudProductDetailDecorated , TimeView } from '@/types/private-cloud' ;
8+ import { MonthlyCost , PrivateCloudProductDetailDecorated } from '@/types/private-cloud' ;
109import { replaceClassToStyleString } from '@/utils/js' ;
1110
1211const weasyClient = new WeasyPrint ( ) ;
@@ -77,6 +76,7 @@ export async function generateMonthlyCostPdf({
7776 data : MonthlyCost ;
7877} ) {
7978 const ReactDOMServer = ( await import ( 'react-dom/server' ) ) . default ;
79+
8080 const chartImageDataURL = await getChartDataURL ( data ) ;
8181 const html = ReactDOMServer . renderToStaticMarkup (
8282 < >
You can’t perform that action at this time.
0 commit comments