From 40c91f9f2ba8c2740598056105dca431b9810d39 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Thu, 10 Jul 2025 01:09:47 +0200 Subject: [PATCH] Remove job status dropdown Don't need it anymore --- src/components/JobCardDetails.tsx | 14 +--- src/components/JobCardHeader.tsx | 2 - src/components/JobStatusDropdown.tsx | 97 ---------------------------- 3 files changed, 1 insertion(+), 112 deletions(-) delete mode 100644 src/components/JobStatusDropdown.tsx diff --git a/src/components/JobCardDetails.tsx b/src/components/JobCardDetails.tsx index eb79922..4420f46 100644 --- a/src/components/JobCardDetails.tsx +++ b/src/components/JobCardDetails.tsx @@ -47,18 +47,6 @@ const JobCardDetails: React.FC = ({ job }) => { }).replace(',', ''); }; - const roundToSignificantDigits = (num: number, digits: number = 4): number => { - if (num === 0) return 0; - const magnitude = Math.floor(Math.log10(Math.abs(num))); - const factor = Math.pow(10, digits - 1 - magnitude); - return Math.round(num * factor) / factor; - }; - - const handleFieldClick = (fieldName: string, currentValue: string | null, e: React.MouseEvent) => { - setEditingField(fieldName); - setTempValues({ ...tempValues, [fieldName]: currentValue || '' }); - }; - const handleJobIdClick = async (e: React.MouseEvent) => { e.stopPropagation(); await copyToClipboard(job.id, 'id', 'Job ID copied to clipboard'); @@ -358,7 +346,7 @@ const PriceDisplay: React.FC = ({ job }) => { Adjusted Break-even{taxSuffix}: - +
= ({
-