-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
admin dashboard student and teacher info added
- Loading branch information
kazirafi71
committed
May 7, 2021
1 parent
73ce7f4
commit 678f0f9
Showing
19 changed files
with
607 additions
and
123 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
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
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
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
26 changes: 15 additions & 11 deletions
26
client/src/pages/Admin/AdminDashboard/MainSidebar/MainSidebar.js
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 |
---|---|---|
@@ -1,15 +1,19 @@ | ||
import React from 'react'; | ||
import SidebarAdmin from '../SidebarAdmin/SidebarAdmin'; | ||
import Styles from './MainSidebar.module.css' | ||
import { Paper } from "@material-ui/core"; | ||
import React from "react"; | ||
import SidebarAdmin from "../SidebarAdmin/SidebarAdmin"; | ||
import Styles from "./MainSidebar.module.css"; | ||
|
||
const MainSidebar = () => { | ||
return ( | ||
<div className={Styles.sideBar}> | ||
<div className={Styles.adminSidebar}> | ||
<SidebarAdmin/> | ||
</div> | ||
</div> | ||
); | ||
return ( | ||
<div className={Styles.sideBar}> | ||
<div className={Styles.adminSidebar}> | ||
<Paper className="py-5 px-4 h-100 shadow "> | ||
<SidebarAdmin /> | ||
</Paper> | ||
|
||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default MainSidebar; | ||
export default MainSidebar; |
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
42 changes: 29 additions & 13 deletions
42
client/src/pages/Admin/AdminDashboard/SidebarAdmin/SidebarAdmin.js
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 |
---|---|---|
@@ -1,17 +1,33 @@ | ||
import React from 'react'; | ||
import Styles from './SidebarAdmin.module.css' | ||
import Sidebar from '../../../../components/Sidebar/Sidebar' | ||
import LocalLibraryIcon from '@material-ui/icons/LocalLibrary'; | ||
import SupervisorAccountIcon from '@material-ui/icons/SupervisorAccount'; | ||
import React from "react"; | ||
import Styles from "./SidebarAdmin.module.css"; | ||
import Sidebar from "../../../../components/Sidebar/Sidebar"; | ||
import LocalLibraryIcon from "@material-ui/icons/LocalLibrary"; | ||
import SupervisorAccountIcon from "@material-ui/icons/SupervisorAccount"; | ||
import ExitToAppIcon from "@material-ui/icons/ExitToApp"; | ||
import DashboardIcon from "@material-ui/icons/Dashboard"; | ||
|
||
const SidebarAdmin = () => { | ||
return ( | ||
<div className={Styles.sidebarAdmin}> | ||
<Sidebar title="Course" link="/admin/course-info" Icon={LocalLibraryIcon}/> | ||
<Sidebar title="Student" link="/admin/student-info" Icon={LocalLibraryIcon}/> | ||
<Sidebar title="Teacher" link="/admin/teacher-info" Icon={LocalLibraryIcon}/> | ||
</div> | ||
); | ||
return ( | ||
<div className={Styles.sidebarAdmin}> | ||
<Sidebar title="Dashboard" link="/admin-dashboard" Icon={DashboardIcon} /> | ||
<Sidebar | ||
title="Course" | ||
link="/admin/course-info" | ||
Icon={LocalLibraryIcon} | ||
/> | ||
<Sidebar | ||
title="Student" | ||
link="/admin/student-info" | ||
Icon={LocalLibraryIcon} | ||
/> | ||
<Sidebar | ||
title="Teacher" | ||
link="/admin/teacher-info" | ||
Icon={LocalLibraryIcon} | ||
/> | ||
<Sidebar title="Logout" link="/admin/teacher-info" Icon={ExitToAppIcon} /> | ||
</div> | ||
); | ||
}; | ||
|
||
export default SidebarAdmin; | ||
export default SidebarAdmin; |
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
Oops, something went wrong.