summaryrefslogtreecommitdiff
path: root/lib/bidding/pre-quote/table/bidding-pre-quote-content.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bidding/pre-quote/table/bidding-pre-quote-content.tsx')
-rw-r--r--lib/bidding/pre-quote/table/bidding-pre-quote-content.tsx51
1 files changed, 0 insertions, 51 deletions
diff --git a/lib/bidding/pre-quote/table/bidding-pre-quote-content.tsx b/lib/bidding/pre-quote/table/bidding-pre-quote-content.tsx
deleted file mode 100644
index 91b80bd3..00000000
--- a/lib/bidding/pre-quote/table/bidding-pre-quote-content.tsx
+++ /dev/null
@@ -1,51 +0,0 @@
-'use client'
-
-import * as React from 'react'
-import { Bidding } from '@/db/schema'
-import { QuotationDetails } from '@/lib/bidding/detail/service'
-import { getBiddingCompanies } from '../service'
-
-import { BiddingPreQuoteVendorTableContent } from './bidding-pre-quote-vendor-table'
-
-interface BiddingPreQuoteContentProps {
- bidding: Bidding
- quotationDetails: QuotationDetails | null
- biddingCompanies: any[]
- prItems: any[]
-}
-
-export function BiddingPreQuoteContent({
- bidding,
- quotationDetails,
- biddingCompanies: initialBiddingCompanies,
- prItems
-}: BiddingPreQuoteContentProps) {
- const [biddingCompanies, setBiddingCompanies] = React.useState(initialBiddingCompanies)
- const [refreshTrigger, setRefreshTrigger] = React.useState(0)
-
- const handleRefresh = React.useCallback(async () => {
- try {
- const result = await getBiddingCompanies(bidding.id)
- if (result.success && result.data) {
- setBiddingCompanies(result.data)
- }
- setRefreshTrigger(prev => prev + 1)
- } catch (error) {
- console.error('Failed to refresh bidding companies:', error)
- }
- }, [bidding.id])
-
- return (
- <div className="space-y-6">
- <BiddingPreQuoteVendorTableContent
- biddingId={bidding.id}
- bidding={bidding}
- biddingCompanies={biddingCompanies}
- onRefresh={handleRefresh}
- onOpenItemsDialog={() => {}}
- onOpenTargetPriceDialog={() => {}}
- onOpenSelectionReasonDialog={() => {}}
- />
- </div>
- )
-}