index.tsx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. import React, { FC } from "react";
  2. interface checkProps {
  3. changeSeason: any;
  4. changeDegree: any;
  5. changePrep: any;
  6. }
  7. const CheckboxTables: FC<checkProps> = ({
  8. changeSeason,
  9. changeDegree,
  10. changePrep,
  11. }) => {
  12. return (
  13. <section className="row p-lg-4 p-md-3 p-2">
  14. <div className="col-8" role="group">
  15. <input
  16. type="checkbox"
  17. className="form-check-input me-2"
  18. onClick={changeSeason}
  19. id="btncheckSeason"
  20. autoComplete="off"
  21. />
  22. <label className="form-check-label me-3" htmlFor="btncheckSeason">
  23. General
  24. </label>
  25. <input
  26. type="checkbox"
  27. className="form-check-input me-2"
  28. onClick={changePrep}
  29. id="btncheckPre"
  30. autoComplete="off"
  31. />
  32. <label className="form-check-label me-3" htmlFor="btncheckPre">
  33. Precipitaciones
  34. </label>
  35. <input
  36. type="checkbox"
  37. className="form-check-input me-2"
  38. onClick={changeDegree}
  39. id="btncheckDegree"
  40. autoComplete="off"
  41. />
  42. <label className="form-check-label me-3" htmlFor="btncheckDegree">
  43. Grados día
  44. </label>
  45. </div>
  46. </section>
  47. );
  48. };
  49. export default CheckboxTables;