forked from CSI-KJSCE/appointment_to_examiner
minor
This commit is contained in:
@@ -1,12 +1,25 @@
|
||||
import React from "react";
|
||||
import { FaUserCircle } from "react-icons/fa";
|
||||
import { useNavigate } from "react-router-dom"; // Import for navigation
|
||||
import "./Navbar.css"; // Navbar-specific styles
|
||||
|
||||
const Navbar = () => {
|
||||
const navigate = useNavigate(); // Hook for navigation
|
||||
|
||||
const goToConsolidatedPage = () => {
|
||||
navigate("/consolidated"); // Route to the consolidated page
|
||||
};
|
||||
|
||||
return (
|
||||
<header className="navbar">
|
||||
<div className="navbar-container">
|
||||
<FaUserCircle className="user-icon" />
|
||||
<button
|
||||
className="consolidated-button"
|
||||
onClick={goToConsolidatedPage}
|
||||
>
|
||||
Go to Consolidated Page
|
||||
</button>
|
||||
</div>
|
||||
</header>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user