-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* added: driver type data * feat: added client side pages and components * admin-dashboard-updated --------- Co-authored-by: Sagar Adhikari <sagarjungadhikari19@gmail.com>
- Loading branch information
1 parent
1c8e144
commit 31a2f8b
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
import { NavLink } from "react-router-dom"; | ||
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; | ||
import { | ||
faBook, | ||
// faGear, | ||
faHouse, | ||
// faList, | ||
// faRightFromBracket, | ||
faUser, | ||
} from "@fortawesome/free-solid-svg-icons"; | ||
|
||
const SideBar = () => { | ||
const homeIcon = <FontAwesomeIcon icon={faHouse} />; | ||
const guestIcon = <FontAwesomeIcon icon={faUser} />; | ||
const bookingIcon = <FontAwesomeIcon icon={faBook} />; | ||
// const settingIcon = <FontAwesomeIcon icon={faGear} />; | ||
// const logoutIcon = <FontAwesomeIcon icon={faRightFromBracket} />; | ||
// const logIcon = <FontAwesomeIcon icon={faList} />; | ||
|
||
return ( | ||
<div className="w-64 p-4 text-gray-900 mt-5"> | ||
<nav className="grid justify-between space-y-6 text-base "> | ||
<NavLink to="dashboard" className="nav-link " title="Dashboard"> | ||
{homeIcon} Dashboard | ||
</NavLink> | ||
<NavLink to="onlinedriver" className="nav-link " title="Online_driver"> | ||
{guestIcon} Online Driver | ||
</NavLink> | ||
<NavLink to="driverDetails" className="nav-link " title="Drivers"> | ||
{guestIcon} Drivers Details | ||
</NavLink> | ||
<NavLink to="passengers" className="nav-link " title="Passengers"> | ||
{bookingIcon} Passengers | ||
</NavLink> | ||
<NavLink to="Rating" className="nav-link " title="Driver Rating"> | ||
{bookingIcon} Driver Rating | ||
</NavLink> | ||
<NavLink to="rides" className="nav-link " title=" Rides Details"> | ||
{bookingIcon} Rides Details | ||
</NavLink> | ||
|
||
</nav> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SideBar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters