Skip to content

Commit

Permalink
Fix all comments on components (infoProfileCard, ProfileCard, Spinner…
Browse files Browse the repository at this point in the history
…Loader, TextArea)
  • Loading branch information
OscarNieto113 committed Apr 25, 2023
1 parent cb024a5 commit 377f7ea
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion GomezMorinFrontEnd/src/components/Checkbox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { Checkbox } from "@material-tailwind/react";

/**
* A Material Tailwind checkbox component with a label and optional sub-label.
*
* @param label The text for the checkbox label.
* @param subLabel An optional sub-label to display below the checkbox label.
*
* @return {JSX.Element} The Checkbox1 component.
*/
const AltCheckbox = ({ label, subLabel }) => {
Expand Down
2 changes: 1 addition & 1 deletion GomezMorinFrontEnd/src/components/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import React from "react";

/**
* Componente para mostrar el encabezado de la página.
*
* @param {string} tittle - Título del encabezado.
*
* @returns {JSX.Element} Elemento JSX que representa el encabezado.
*/
const Header = ({ tittle }) => {
Expand Down
2 changes: 1 addition & 1 deletion GomezMorinFrontEnd/src/components/InfoProfileCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import SpinnerLoader from "./SpinnerLoader";

/**
* A component that displays user information and allows them to update their profile.
*
* @param {string} Cookie.session.id - The ID of the user's session cookie.
*
* @returns {JSX.Element} The JSX element displaying the user's profile and profile editing form.
*/
const InfoProfileCard = (/*Cookie.session.id*/) => {
Expand Down
2 changes: 1 addition & 1 deletion GomezMorinFrontEnd/src/components/ProfileCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import React from "react";

/**
* This component creates a profile card that displays a user's name and profile picture.
* @param {string} nombre - The user's name, passed as a prop to the component.
* @param {string} sourceImage - The source of the user's profile picture, passed as a prop to the component.
*
* @returns {JSX.Element} - Returns a JSX element that displays the user's name and profile picture in a card format.
*/
const ProfileCard = ({ nombre, sourceImage }) => {
Expand Down
2 changes: 1 addition & 1 deletion GomezMorinFrontEnd/src/components/SpinnerLoader.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { ColorRing } from "react-loader-spinner";

/**
* This component creates a spinner loader using the ColorRing component from "react-loader-spinner".
* @param {string} colorSpin - The color of the spinner, passed as a prop to the component.
*
* @param {string} colorSpin - The color of the spinner, passed as a prop to the component.
* @returns {JSX.Element} - Returns a JSX element that displays the spinner loader with the specified color.
*/
const SpinnerLoader = ({ colorSpin }) => {
Expand Down
2 changes: 1 addition & 1 deletion GomezMorinFrontEnd/src/components/TextArea.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import { useFormContext } from "react-hook-form";

/**
* A component for rendering a textarea input field.
*
* @param {string} label - The label text for the textarea.
* @param {string} name - The name of the textarea input field.
* @param {string} placeholder - The placeholder text for the textarea.
* @param {string} defaultValue - The default value for the textarea.
*
* @returns {JSX.Element} - The rendered component.
*/
const TextArea = ({ label, name, placeholder, defaultValue }) => {
Expand Down

0 comments on commit 377f7ea

Please sign in to comment.