Added JSDoc comments for Header page and its helper function

This commit is contained in:
Sarim-Sheikh-2003 2024-01-20 13:41:24 -07:00
parent befd44100f
commit 28c363309e
2 changed files with 14 additions and 0 deletions

View File

@ -1,6 +1,13 @@
import { useNavigate } from "react-router-dom";
import "./Header.css";
/**
* @param {null} null - requires onthing
* @returns {JSX.Element} JSX - HTML tags and JS functionality
* @description Header page helper function for drop down menu
* @author Sarim <sheikhsarim20@gmail.com>
* @todo add css
*/
const DropdownMenu = () => {
const navigate = useNavigate();

View File

@ -5,6 +5,13 @@ import { useState } from "react";
import { Outlet } from "react-router-dom";
import "./Header.css";
/**
* @param {null} null - requires onthing
* @returns {JSX.Element} JSX - HTML tags and JS functionality
* @description Header Page
* @author Sarim <sheikhsarim20@gmail.com>
* @todo add css and comments
*/
export default function Header() {
const [isDropdownVisible, setDropdownVisible] = useState(false);
const navigate = useNavigate();