Skip to content

Commit e8785e4

Browse files
Fixed jsdoc comments
1 parent b795580 commit e8785e4

4 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/features/admin/components/form/Form.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ import type { ChatGPTFormData } from 'types/admin';
2121
import styles from '../../index.module.css';
2222

2323
/**
24-
* Header
25-
* @return {JSX.Element} Form Button Component
24+
* Header Component
25+
* @return {JSX.Element | null} Header Component
2626
*/
2727
const Form = (): JSX.Element | null => {
2828
const { formData, handleChange, handleSave } = useAdminForm({

src/features/admin/components/form/FormContainer.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,10 @@ import { __, sprintf } from '@wordpress/i18n';
99
import styles from '../../index.module.css';
1010

1111
/**
12-
* Header
13-
* @return {JSX.Element} Form Button Component
12+
* FormContainer Component
13+
* @param {Object} props - Component props
14+
* @param {React.ReactNode} props.children - Child components
15+
* @return {JSX.Element} FormContainer Component
1416
*/
1517
const FormContainer = ({
1618
children,

src/features/admin/components/form/FormInput.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import styles from '../../index.module.css';
55

66
/**
7-
* Component for number input
7+
* FormInput Component
88
* @param {Object} props - Component props
99
* @param {FormInputType} props.type - Type of the input
1010
* @param {string} props.label - Label for the input
@@ -13,7 +13,7 @@ import styles from '../../index.module.css';
1313
* @param {string} props.placeholder - Placeholder for the input
1414
* @param {Function} props.onChange - Change handler for the input
1515
* @param {boolean} props.disabled - Disabled state for the input
16-
* @return {JSX.Element} Text input component
16+
* @return {JSX.Element} FormInput component
1717
*/
1818
const FormInput = ({
1919
type,

src/features/admin/components/form/FormSelect.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
import styles from '../../index.module.css';
55

66
/**
7-
* Select Component
7+
* FormSelect Component
88
* @param {Object} props - Component props
99
* @param {string} props.label - Label for the select
1010
* @param {string} props.name - Name of the select
1111
* @param {string} props.value - Value of the select
1212
* @param {Array} props.options - Options for the select
1313
* @param {Function} props.onChange - Change handler for the select
14-
* @return {JSX.Element} Toggle component
14+
* @return {JSX.Element} FormSelect component
1515
*/
1616
const FormSelect = ({
1717
label,

0 commit comments

Comments
 (0)