Change the icons on AttendanceChart.jsx

This commit is contained in:
Kartik Sharma 2025-08-12 12:26:17 +05:30
parent 8df47c1530
commit e62663af69

View File

@ -99,7 +99,9 @@ const AttendanceOverview = () => {
};
return (
<div className="bg-white p-4 rounded shadow d-flex flex-column">
<div
className="bg-white p-4 rounded shadow d-flex flex-column"
>
{/* Header */}
<div className="d-flex justify-content-between align-items-center mb-3">
<div className="card-title mb-0 text-start">
@ -108,7 +110,7 @@ const AttendanceOverview = () => {
</div>
<div className="d-flex gap-2">
<select
className="form-select form-select-sm w-auto"
className="form-select form-select-sm"
value={dayRange}
onChange={(e) => setDayRange(Number(e.target.value))}
>
@ -117,20 +119,18 @@ const AttendanceOverview = () => {
<option value={30}>Last 30 Days</option>
</select>
<button
className={`btn btn-sm p-1 ${
view === "chart" ? "btn-primary" : "btn-outline-primary"
}`}
className={`btn btn-sm ${view === "chart" ? "btn-primary" : "btn-outline-primary"}`}
onClick={() => setView("chart")}
title="Chart View"
>
<i class="bx bx-bar-chart fs-5"></i>
<i className="bx bx-bar-chart-alt-2"></i>
</button>
<button
className={`btn btn-sm p-1 ${
view === "table" ? "btn-primary" : "btn-outline-primary"
}`}
className={`btn btn-sm ${view === "table" ? "btn-primary" : "btn-outline-primary"}`}
onClick={() => setView("table")}
title="Table View"
>
<i class="bx bx-table fs-5"></i>
<i className="bx bx-task text-success"></i>
</button>
</div>
</div>