forked from CSI-KJSCE/appointment_to_examiner
minor
This commit is contained in:
@@ -30,7 +30,6 @@ const ConsolidatedTable = () => {
|
||||
<table border="1" style={{ width: "100%", textAlign: "left" }}>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Sr No</th>
|
||||
<th>Semester</th>
|
||||
<th>Course Code</th>
|
||||
<th>Course Name</th>
|
||||
@@ -52,7 +51,6 @@ const ConsolidatedTable = () => {
|
||||
<tbody>
|
||||
{data.map((row, index) => (
|
||||
<tr key={index}>
|
||||
<td>{row.srNo}</td>
|
||||
<td>{row.semester}</td>
|
||||
<td>{row.courseCode}</td>
|
||||
<td>{row.courseName}</td>
|
||||
|
||||
@@ -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