File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -1478,8 +1478,6 @@ export default function Dashboard() {
14781478 : vcpu >= 4 ? { text : 'High Load' , color : 'text-orange-500 bg-orange-50' }
14791479 : vcpu >= 2 ? { text : 'Moderate' , color : 'text-amber-500 bg-amber-50' }
14801480 : { text : 'Optimized' , color : 'text-emerald-600 bg-emerald-50' } ;
1481- const estMonthlySavings = fixedCost - monthlyCost ;
1482- const isOverspend = estMonthlySavings < 0 ;
14831481 return (
14841482 < >
14851483 < div data-testid = "monthly-cost" >
@@ -1516,13 +1514,6 @@ export default function Dashboard() {
15161514 < span className = "text-[9px] text-gray-400" > $0</ span >
15171515 < span className = "text-[9px] text-gray-400" > ${ fixedCost . toFixed ( 0 ) } </ span >
15181516 </ div >
1519- { /* Est. Monthly Savings */ }
1520- < div className = { `mt-2.5 flex items-center justify-between px-2.5 py-1.5 rounded-lg ${ isOverspend ? 'bg-red-50' : 'bg-emerald-50' } ` } >
1521- < span className = "text-[10px] text-gray-500" > Est. monthly savings</ span >
1522- < span className = { `text-[11px] font-bold tabular-nums ${ isOverspend ? 'text-red-600' : 'text-emerald-600' } ` } >
1523- { isOverspend ? '-' : '+' } ${ Math . abs ( estMonthlySavings ) . toFixed ( 0 ) } /mo
1524- </ span >
1525- </ div >
15261517 </ div >
15271518 </ >
15281519 ) ;
You can’t perform that action at this time.
0 commit comments