Skip to content

Commit

Permalink
added
Browse files Browse the repository at this point in the history
  • Loading branch information
SrijaVuppala295 committed Oct 31, 2024
1 parent 8bc00fa commit f54fb26
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions frontend/src/Pages/hamburger.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import React, { useState, useEffect, useRef } from "react";
import styled, { keyframes } from "styled-components";
import { FaArrowLeft, FaSearch, FaTimes } from "react-icons/fa";
import { useNavigate } from "react-router-dom";
import { FaQuestionCircle } from "react-icons/fa";


const fadeIn = keyframes`
from {
Expand Down Expand Up @@ -155,6 +157,10 @@ const Hamburger = () => {
const helpClick = () => {
navigate("/Help");
};
const FaqClick = () => {
navigate("/FAQ");
};


const aboutClick = () => {
navigate("/About");
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react';
import { FaBars, FaTimes, FaUser, FaHandsHelping, FaBell, FaStar, FaCreditCard, FaInfoCircle } from 'react-icons/fa';
import { FaBars, FaTimes, FaUser, FaHandsHelping, FaBell, FaStar, FaCreditCard, FaInfoCircle, FaQuestionCircle } from 'react-icons/fa';
import { IoSettings } from "react-icons/io5";
import { useNavigate } from 'react-router-dom';
import axios from 'axios'; // Import axios
Expand Down Expand Up @@ -205,7 +205,7 @@ const Navbar = () => {
<span className="text-lg">Settings</span>
</li>
<li className="flex items-center px-4 py-2 text-black cursor-pointer hover:text-white hover:bg-blue-600" onClick={handleFaqClick}>
<FaHandsHelping className="mr-3 text-blue-300" />
<FaQuestionCircle className="mr-3 text-blue-300" />
<span className="text-lg">FAQ</span>
</li>
</ul>
Expand Down

0 comments on commit f54fb26

Please sign in to comment.