Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions app/customers/index.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 2 additions & 0 deletions app/financials/add.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
7 changes: 4 additions & 3 deletions app/sales/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <List.Icon {...props} icon={() => <HugeiconsIcon icon={icon} size={24} color={theme.colors.primary} />} />;
}}
style={{ paddingHorizontal: 0 }}
Expand Down
1 change: 0 additions & 1 deletion components/ExternalLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ export function ExternalLink(
<Link
target="_blank"
{...props}
// @ts-expect-error: External URLs are not typed.
href={props.href}
onPress={(e) => {
if (Platform.OS !== 'web') {
Expand Down
1 change: 0 additions & 1 deletion src/components/BarcodeScannerModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ const styles = StyleSheet.create({
alignSelf: 'center',
paddingHorizontal: 20,
borderRadius: 20,
backdropFilter: 'blur(10px)',
},
overlay: {
flex: 1,
Expand Down