feat: Adsterra integration, code splitting, cleanup, Onidel affiliate

This commit is contained in:
dwindown
2026-02-18 16:50:45 +07:00
parent 7ba289be5c
commit 9dc3285adb
40 changed files with 352 additions and 2933 deletions

View File

@@ -111,7 +111,6 @@ const InvoiceEditor = () => {
const currencyData = await response.json();
setCurrencies(currencyData);
} catch (error) {
console.error('Failed to load currencies:', error);
// Fallback to basic currencies
setCurrencies([
{ code: 'IDR', name: 'Indonesian Rupiah', symbol: 'Rp' },
@@ -165,7 +164,7 @@ const InvoiceEditor = () => {
setPdfPageSize(savedPageSize);
}
} catch (error) {
console.error('Failed to load saved invoice:', error);
// Failed to load saved invoice
}
}, [searchParams]);
@@ -176,7 +175,7 @@ const InvoiceEditor = () => {
try {
localStorage.setItem('currentInvoice', JSON.stringify(invoiceData));
} catch (error) {
console.error('Failed to save invoice:', error);
// Failed to save invoice
}
}
}, [invoiceData, createNewCompleted]);
@@ -227,7 +226,7 @@ const InvoiceEditor = () => {
try {
localStorage.setItem('pdfPageSize', pdfPageSize);
} catch (error) {
console.error('Failed to save PDF page size:', error);
// Failed to save PDF page size
}
}, [pdfPageSize]);
@@ -619,7 +618,6 @@ const InvoiceEditor = () => {
// Navigate to preview page
navigate('/invoice-preview');
} catch (error) {
console.error('Failed to save invoice data:', error);
alert('Failed to save invoice data. Please try again.');
}
};