This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useState } from 'react'; | |
| export const useFilter = () => { | |
| const [dataFiltered, setDataFiltered] = useState([]); | |
| const handleFilterSearch = (e, data = []) => { | |
| const newFilter = data?.filter((item) => JSON.stringify(item).toLowerCase().indexOf(e.target.value?.toLowerCase()) !== -1); | |
| setDataFiltered(newFilter); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"version":1,"resource":"file:///c%3A/git/BANHCAFE-ReactInternalWebApp/banhcafe-internalwebapp/src/pages/customers/features/customerSlice.js","entries":[{"id":"7smb.js","timestamp":1670509618512},{"id":"xdoW.js","timestamp":1670509632999},{"id":"hGOD.js","timestamp":1670509645587},{"id":"ZMNC.js","timestamp":1670509658844},{"id":"4aP1.js","timestamp":1670509669520},{"id":"bddM.js","timestamp":1670509935787},{"id":"XEgR.js","timestamp":1670528122643},{"id":"X0zp.js","source":"Edición del área de trabajo","timestamp":1670528152716},{"id":"llaK.js","timestamp":1670528192526},{"id":"zQ60.js","timestamp":1670528236248},{"id":"ruY0.js","timestamp":1670528269510},{"id":"FRKi.js","timestamp":1670528555419},{"id":"vJtZ.js","timestamp":1670536776605},{"id":"svWO.js","timestamp":1670536796262},{"id":"OHk9.js","timestamp":1670536815596},{"id":"gjkL.js","timestamp":1670536869028},{"id":"HXgy.js","timestamp":1670536909720},{"id":"tf60.js","timestamp":1670595334625},{"id":"A6ue.js","timestamp":1670596511387},{"id":"0Td3.js" |