diff --git a/app/customers/index.tsx b/app/customers/index.tsx index 63eae6f..596a0ff 100644 --- a/app/customers/index.tsx +++ b/app/customers/index.tsx @@ -1,4 +1,6 @@ import { useCustomers } from '@/src/hooks/useCustomers'; +import { UserIcon } from '@hugeicons/core-free-icons'; +import { HugeiconsIcon } from '@hugeicons/react-native'; import { Stack, useRouter } from 'expo-router'; import React, { useMemo, useState } from 'react'; import { FlatList, StyleSheet, View } from 'react-native'; diff --git a/app/financials/add.tsx b/app/financials/add.tsx index b6b4c64..3d954ba 100644 --- a/app/financials/add.tsx +++ b/app/financials/add.tsx @@ -1,4 +1,6 @@ import { useExpenses } from '@/src/hooks/useExpenses'; +import { Camera01Icon, Delete02Icon, Image01Icon } from '@hugeicons/core-free-icons'; +import { HugeiconsIcon } from '@hugeicons/react-native'; import * as ImagePicker from 'expo-image-picker'; import { Stack, useRouter } from 'expo-router'; import React, { useState } from 'react'; diff --git a/app/sales/[id].tsx b/app/sales/[id].tsx index 3c7a417..c515a3c 100644 --- a/app/sales/[id].tsx +++ b/app/sales/[id].tsx @@ -286,11 +286,12 @@ export default function OrderDetailsScreen() { key={p.id} title={`$${p.amount.toFixed(2)}`} titleStyle={{ fontWeight: 'bold' }} - description={`${p.paymentMethod.replace('_', ' ')} | ${new Date(p.date || '').toLocaleDateString()}`} + description={`${(p.paymentMethod || 'cash').replace('_', ' ')} | ${new Date(p.date || '').toLocaleDateString()}`} left={(props) => { let icon = Wallet01Icon; - if (p.paymentMethod === 'bank_transfer') icon = Invoice01Icon; - if (p.paymentMethod === 'card') icon = CreditCardIcon; + const method = p.paymentMethod || 'cash'; + if (method === 'bank_transfer') icon = Invoice01Icon; + if (method === 'card') icon = CreditCardIcon; return } />; }} style={{ paddingHorizontal: 0 }} diff --git a/components/ExternalLink.tsx b/components/ExternalLink.tsx index 6957b3f..edebe90 100644 --- a/components/ExternalLink.tsx +++ b/components/ExternalLink.tsx @@ -10,7 +10,6 @@ export function ExternalLink( { if (Platform.OS !== 'web') { diff --git a/src/components/BarcodeScannerModal.tsx b/src/components/BarcodeScannerModal.tsx index 9e3f03b..358a8f0 100644 --- a/src/components/BarcodeScannerModal.tsx +++ b/src/components/BarcodeScannerModal.tsx @@ -111,7 +111,6 @@ const styles = StyleSheet.create({ alignSelf: 'center', paddingHorizontal: 20, borderRadius: 20, - backdropFilter: 'blur(10px)', }, overlay: { flex: 1,