From bd27b549aaae87b41f1cfb7180600195ef489dbe Mon Sep 17 00:00:00 2001 From: Davenludd Date: Wed, 20 Mar 2024 13:53:51 +0100 Subject: [PATCH] Add JSDoc comments to Button component --- frontend/src/Components/Button.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/Components/Button.tsx b/frontend/src/Components/Button.tsx index 38a1853..13ae807 100644 --- a/frontend/src/Components/Button.tsx +++ b/frontend/src/Components/Button.tsx @@ -1,3 +1,12 @@ +/** + * Button component to display a button with text and onClick function. + * + * @param {Object} props - The component props. + * @param {string} props.text - The text to display on the button. + * @param {Function} props.onClick - The function to run when the button is clicked. + * @param {"submit" | "button" | "reset"} props.type - The type of button. + * @returns {JSX.Element} The rendered Button component. + */ function Button({ text, onClick,