diff --git a/src/SchoolManagementSystem.Presentation/package-lock.json b/src/SchoolManagementSystem.Presentation/package-lock.json index a274649..1fcb99c 100644 --- a/src/SchoolManagementSystem.Presentation/package-lock.json +++ b/src/SchoolManagementSystem.Presentation/package-lock.json @@ -24,6 +24,7 @@ "react-bootstrap": "^2.4.0", "react-dom": "^18.2.0", "react-faq-component": "^1.3.4", + "react-highlight-words": "^0.18.0", "react-router-dom": "^6.3.0", "react-scripts": "^5.0.1", "school-calendar-react": "^1.0.1", @@ -15053,6 +15054,24 @@ "react-dom": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0" } }, + "node_modules/react-highlight-words": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-highlight-words/-/react-highlight-words-0.18.0.tgz", + "integrity": "sha512-5z+46eLPjB4JWgOhuQ0E+6iUPTD1U3amiy5KKjzZmeJ5zyvHr91hnzBT3UHya/KlySm5KRTKpYpba9vs67oO2A==", + "dependencies": { + "highlight-words-core": "^1.2.0", + "memoize-one": "^4.0.0", + "prop-types": "^15.5.8" + }, + "peerDependencies": { + "react": "^0.14.0 || ^15.0.0 || ^16.0.0-0 || ^17.0.0-0 || ^18.0.0-0" + } + }, + "node_modules/react-highlight-words/node_modules/memoize-one": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-4.0.3.tgz", + "integrity": "sha512-QmpUu4KqDmX0plH4u+tf0riMc1KHE1+lw95cMrLlXQAFOx/xnBtwhZ52XJxd9X2O6kwKBqX32kmhbhlobD0cuw==" + }, "node_modules/react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", @@ -28609,6 +28628,23 @@ "integrity": "sha512-oRXUfdr5OItsW4fRp5RMIUh4P2G1PAVMlFizWGR3ecwuCiNv/Akjx63yeOBrupCfh4AYqumPvQ3+hhKdxNkvxw==", "requires": {} }, + "react-highlight-words": { + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/react-highlight-words/-/react-highlight-words-0.18.0.tgz", + "integrity": "sha512-5z+46eLPjB4JWgOhuQ0E+6iUPTD1U3amiy5KKjzZmeJ5zyvHr91hnzBT3UHya/KlySm5KRTKpYpba9vs67oO2A==", + "requires": { + "highlight-words-core": "^1.2.0", + "memoize-one": "^4.0.0", + "prop-types": "^15.5.8" + }, + "dependencies": { + "memoize-one": { + "version": "4.0.3", + "resolved": "https://registry.npmjs.org/memoize-one/-/memoize-one-4.0.3.tgz", + "integrity": "sha512-QmpUu4KqDmX0plH4u+tf0riMc1KHE1+lw95cMrLlXQAFOx/xnBtwhZ52XJxd9X2O6kwKBqX32kmhbhlobD0cuw==" + } + } + }, "react-is": { "version": "17.0.2", "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", diff --git a/src/SchoolManagementSystem.Presentation/package.json b/src/SchoolManagementSystem.Presentation/package.json index c1a5c56..7be739c 100644 --- a/src/SchoolManagementSystem.Presentation/package.json +++ b/src/SchoolManagementSystem.Presentation/package.json @@ -19,6 +19,7 @@ "react-bootstrap": "^2.4.0", "react-dom": "^18.2.0", "react-faq-component": "^1.3.4", + "react-highlight-words": "^0.18.0", "react-router-dom": "^6.3.0", "react-scripts": "^5.0.1", "school-calendar-react": "^1.0.1", diff --git a/src/SchoolManagementSystem.Presentation/src/pages/Students.js b/src/SchoolManagementSystem.Presentation/src/pages/Students.js index 05ff9f8..0edf546 100644 --- a/src/SchoolManagementSystem.Presentation/src/pages/Students.js +++ b/src/SchoolManagementSystem.Presentation/src/pages/Students.js @@ -337,14 +337,6 @@ const Students = () => { compare: (a, b) => a.founds - b.founds }, rules: [ - { - required: true, - message: "Introduzca los fondos.", - }, - { - whitespace: true, - message: "Introduzca los fondos." - }, { pattern: /^[0-9]+$/, message: 'Los fondos solo pueden contener nĂºmeros.'