Added Documents Feature
This commit is contained in:
@@ -33,8 +33,13 @@ export class MobileErrorBoundary extends React.Component<MobileErrorBoundaryProp
|
||||
errorInfo
|
||||
});
|
||||
|
||||
// Log error for debugging
|
||||
console.error(`Mobile screen error in ${this.props.screenName}:`, error, errorInfo);
|
||||
// Enhanced logging for debugging (temporary)
|
||||
console.error(`[Mobile Error Boundary] Screen: ${this.props.screenName}`);
|
||||
console.error(`[Mobile Error Boundary] Error message:`, error.message);
|
||||
console.error(`[Mobile Error Boundary] Error stack:`, error.stack);
|
||||
console.error(`[Mobile Error Boundary] Component stack:`, errorInfo.componentStack);
|
||||
console.error(`[Mobile Error Boundary] Full error object:`, error);
|
||||
console.error(`[Mobile Error Boundary] Full errorInfo object:`, errorInfo);
|
||||
}
|
||||
|
||||
handleRetry = () => {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { create } from 'zustand';
|
||||
import { persist, createJSONStorage } from 'zustand/middleware';
|
||||
import { safeStorage } from '../utils/safe-storage';
|
||||
|
||||
export type MobileScreen = 'Dashboard' | 'Vehicles' | 'Log Fuel' | 'Settings';
|
||||
export type MobileScreen = 'Dashboard' | 'Vehicles' | 'Log Fuel' | 'Documents' | 'Settings';
|
||||
export type VehicleSubScreen = 'list' | 'detail' | 'add' | 'edit';
|
||||
|
||||
interface NavigationHistory {
|
||||
@@ -210,4 +210,4 @@ export const useNavigationStore = create<NavigationState>()(
|
||||
},
|
||||
}
|
||||
)
|
||||
);
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user