minor
This commit is contained in:
@@ -30,7 +30,6 @@ const ConsolidatedTable = () => {
|
|||||||
<table border="1" style={{ width: "100%", textAlign: "left" }}>
|
<table border="1" style={{ width: "100%", textAlign: "left" }}>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Sr No</th>
|
|
||||||
<th>Semester</th>
|
<th>Semester</th>
|
||||||
<th>Course Code</th>
|
<th>Course Code</th>
|
||||||
<th>Course Name</th>
|
<th>Course Name</th>
|
||||||
@@ -52,7 +51,6 @@ const ConsolidatedTable = () => {
|
|||||||
<tbody>
|
<tbody>
|
||||||
{data.map((row, index) => (
|
{data.map((row, index) => (
|
||||||
<tr key={index}>
|
<tr key={index}>
|
||||||
<td>{row.srNo}</td>
|
|
||||||
<td>{row.semester}</td>
|
<td>{row.semester}</td>
|
||||||
<td>{row.courseCode}</td>
|
<td>{row.courseCode}</td>
|
||||||
<td>{row.courseName}</td>
|
<td>{row.courseName}</td>
|
||||||
|
|||||||
@@ -1,12 +1,25 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { FaUserCircle } from "react-icons/fa";
|
import { FaUserCircle } from "react-icons/fa";
|
||||||
|
import { useNavigate } from "react-router-dom"; // Import for navigation
|
||||||
import "./Navbar.css"; // Navbar-specific styles
|
import "./Navbar.css"; // Navbar-specific styles
|
||||||
|
|
||||||
const Navbar = () => {
|
const Navbar = () => {
|
||||||
|
const navigate = useNavigate(); // Hook for navigation
|
||||||
|
|
||||||
|
const goToConsolidatedPage = () => {
|
||||||
|
navigate("/consolidated"); // Route to the consolidated page
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<header className="navbar">
|
<header className="navbar">
|
||||||
<div className="navbar-container">
|
<div className="navbar-container">
|
||||||
<FaUserCircle className="user-icon" />
|
<FaUserCircle className="user-icon" />
|
||||||
|
<button
|
||||||
|
className="consolidated-button"
|
||||||
|
onClick={goToConsolidatedPage}
|
||||||
|
>
|
||||||
|
Go to Consolidated Page
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user