mirror of
				https://github.com/i701/sarlink-portal.git
				synced 2025-11-04 06:26:59 +00:00 
			
		
		
		
	refactor: add tryCatch utility for error handling, update device-related components and types, and clean up unused code in payment actions
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Build and Push Docker Images / Build and Push Docker Images (push) Failing after 13m55s
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Build and Push Docker Images / Build and Push Docker Images (push) Failing after 13m55s
				
			This commit is contained in:
		@@ -1,12 +1,10 @@
 | 
			
		||||
import DevicesForPayment from '@/components/devices-for-payment'
 | 
			
		||||
import prisma from '@/lib/db';
 | 
			
		||||
import React from 'react'
 | 
			
		||||
import DevicesForPayment from "@/components/devices-for-payment";
 | 
			
		||||
import React from "react";
 | 
			
		||||
 | 
			
		||||
export default async function DevicesToPay() {
 | 
			
		||||
  const billFormula = await prisma.billFormula.findFirst();
 | 
			
		||||
  return (
 | 
			
		||||
    <div>
 | 
			
		||||
      <DevicesForPayment billFormula={billFormula ?? undefined} />
 | 
			
		||||
    </div>
 | 
			
		||||
  )
 | 
			
		||||
	return (
 | 
			
		||||
		<div>
 | 
			
		||||
			<DevicesForPayment />
 | 
			
		||||
		</div>
 | 
			
		||||
	);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user