diff --git a/App.js b/App.js index 41f3bfa..febe3da 100644 --- a/App.js +++ b/App.js @@ -4,21 +4,7 @@ import AppNavigator from './src/navigation/AppNavigator'; import { View, Text, FlatList, StyleSheet } from 'react-native'; import useStore from './src/store'; - -// const joinClientesConNotas = (clientes, notasPendientes) => { -// const clientesConNotas = clientes.map(cliente => { -// const notasDelCliente = notasPendientes.filter(nota => nota.Cuenta.trim() === cliente.Cuenta.trim()); -// return { -// ...cliente, -// NotasPendientes: notasDelCliente -// }; -// }); -// return clientesConNotas; -// }; -// const resultado = joinClientesConNotas(Clientes, Notas_pendientes); -// console.log(resultado); const App = () => { - const clientes = useStore(state => state.clientes); return ( @@ -26,34 +12,4 @@ const App = () => { ); }; -const styles = StyleSheet.create({ - itemContainer: { - backgroundColor: '#f9f9f9', - padding: 20, - marginVertical: 8, - borderRadius: 5, - shadowColor: "#000", - shadowOffset: { - width: 0, - height: 2, - }, - shadowOpacity: 0.25, - shadowRadius: 3.84, - elevation: 5, - }, - clienteNombre: { - fontSize: 18, - fontWeight: 'bold', - }, - detalle: { - fontSize: 14, - marginTop: 5, - }, - notaDetalle: { - fontSize: 12, - marginLeft: 10, - } -}); - - export default App; diff --git a/src/components/NoteItem.js b/src/components/NoteItem.js index 01bf2f7..54e0d86 100644 --- a/src/components/NoteItem.js +++ b/src/components/NoteItem.js @@ -5,7 +5,6 @@ import { theme } from "../../constants"; import BorderBox from "../pieces/BorderBox"; const NoteItem = ({ note, onSelect }) => { - console.log(note); return ( onSelect(note.name)} style={noteItemstyles.container}>