Code format
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { useState, useEffect } from 'react';
|
||||
import { useState } from 'react';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Textarea } from '@/components/ui/textarea';
|
||||
|
||||
@@ -109,8 +109,7 @@ const JobCardMetrics: React.FC<JobCardMetricsProps> = ({ job }) => {
|
||||
</span>
|
||||
)}</div>
|
||||
<div
|
||||
className={`text-xs font-medium px-2 py-0.5 rounded-full inline-block ${
|
||||
totalExpenditure <= job.projectedCost
|
||||
className={`text-xs font-medium px-2 py-0.5 rounded-full inline-block ${totalExpenditure <= job.projectedCost
|
||||
? 'bg-green-900/50 text-green-400'
|
||||
: 'bg-red-900/50 text-red-400'
|
||||
}`}
|
||||
@@ -152,8 +151,7 @@ const JobCardMetrics: React.FC<JobCardMetricsProps> = ({ job }) => {
|
||||
)}</div>
|
||||
<div className="flex justify-center gap-2">
|
||||
<div
|
||||
className={`text-xs font-medium px-2 py-0.5 rounded-full inline-block ${
|
||||
totalIncome >= job.projectedRevenue
|
||||
className={`text-xs font-medium px-2 py-0.5 rounded-full inline-block ${totalIncome >= job.projectedRevenue
|
||||
? 'bg-green-900/50 text-green-400'
|
||||
: 'bg-yellow-900/50 text-yellow-400'
|
||||
}`}
|
||||
@@ -163,8 +161,7 @@ const JobCardMetrics: React.FC<JobCardMetricsProps> = ({ job }) => {
|
||||
</div>
|
||||
{showPerformanceIndicator && (
|
||||
<div
|
||||
className={`text-xs font-medium px-2 py-0.5 rounded-full inline-block ${
|
||||
performancePercentage >= 100
|
||||
className={`text-xs font-medium px-2 py-0.5 rounded-full inline-block ${performancePercentage >= 100
|
||||
? 'bg-green-900/50 text-green-400'
|
||||
: performancePercentage >= 90
|
||||
? 'bg-yellow-900/50 text-yellow-400'
|
||||
|
||||
Reference in New Issue
Block a user