-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from AkshataKatwal16/admin
Issue feat PS-981 ,PS-986 add faciliator page, add searchbar, add suboptions
- Loading branch information
Showing
12 changed files
with
408 additions
and
96 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
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,120 @@ | ||
// import React, { useState } from "react"; | ||
// import FeatherIcon from "feather-icons-react"; | ||
// import { IconButton, Input, Box, Drawer } from "@mui/material"; | ||
|
||
// const SearchDD = () => { | ||
// // drawer top | ||
// const [showDrawer2, setShowDrawer2] = useState(false); | ||
|
||
// const handleDrawerClose2 = () => { | ||
// setShowDrawer2(false); | ||
// }; | ||
// return ( | ||
// <> | ||
// <IconButton | ||
// aria-label="show 4 new mails" | ||
// color="inherit" | ||
// aria-controls="search-menu" | ||
// aria-haspopup="true" | ||
// onClick={() => setShowDrawer2(true)} | ||
// size="large" | ||
// > | ||
// <FeatherIcon icon="search" width="20" height="20" /> | ||
// </IconButton> | ||
// <Drawer | ||
// anchor="top" | ||
// open={showDrawer2} | ||
// onClose={() => setShowDrawer2(false)} | ||
// sx={{ | ||
// "& .MuiDrawer-paper": { | ||
// padding: "15px 30px", | ||
// }, | ||
// }} | ||
// > | ||
// <Box display="flex" alignItems="center"> | ||
// <Input placeholder="Search here" aria-label="description" fullWidth /> | ||
// <Box | ||
// sx={{ | ||
// ml: "auto", | ||
// }} | ||
// > | ||
// <IconButton | ||
// color="inherit" | ||
// sx={{ | ||
// color: (theme) => theme.palette.grey.A200, | ||
// }} | ||
// onClick={handleDrawerClose2} | ||
// > | ||
// <FeatherIcon icon="x-circle" /> | ||
// </IconButton> | ||
// </Box> | ||
// </Box> | ||
// </Drawer> | ||
// </> | ||
// ); | ||
// }; | ||
|
||
// export default SearchDD; | ||
|
||
|
||
|
||
import * as React from 'react'; | ||
import { styled, alpha } from '@mui/material/styles'; | ||
import InputBase from '@mui/material/InputBase'; | ||
import SearchIcon from '@mui/icons-material/Search'; | ||
|
||
|
||
export default function SearchBar({backgroundColor,placeholder}: any ) { | ||
const Search = styled('div')(({ theme }) => ({ | ||
position: 'relative', | ||
borderRadius: theme.shape.borderRadius, | ||
backgroundColor: backgroundColor, | ||
'&:hover': { | ||
// backgroundColor: alpha(theme.palette.common.white, 0.25), | ||
}, | ||
marginRight: theme.spacing(2), | ||
marginLeft: 0, | ||
width: '100%', | ||
[theme.breakpoints.up('sm')]: { | ||
// marginLeft: theme.spacing(3), | ||
width: '50%', | ||
}, | ||
})); | ||
|
||
const SearchIconWrapper = styled('div')(({ theme }) => ({ | ||
color: 'black', | ||
padding: theme.spacing(0, 2), | ||
height: '100%', | ||
position: 'absolute', | ||
pointerEvents: 'none', | ||
display: 'flex', | ||
alignItems: 'center', | ||
justifyContent: 'center', | ||
})); | ||
|
||
const StyledInputBase = styled(InputBase)(({ theme }) => ({ | ||
color: 'black', | ||
'& .MuiInputBase-input': { | ||
padding: theme.spacing(1, 1, 1, 0), | ||
// vertical padding + font size from searchIcon | ||
paddingLeft: `calc(1em + ${theme.spacing(4)})`, | ||
transition: theme.transitions.create('width'), | ||
width: '100%', | ||
[theme.breakpoints.up('md')]: { | ||
width: '100ch', | ||
}, | ||
}, | ||
})); | ||
|
||
return ( | ||
<Search> | ||
<SearchIconWrapper> | ||
<SearchIcon /> | ||
</SearchIconWrapper> | ||
<StyledInputBase | ||
placeholder={placeholder} | ||
inputProps={{ 'aria-label': 'search' }} | ||
/> | ||
</Search> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
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,28 +1,52 @@ | ||
|
||
import { useTranslation } from "next-i18next"; | ||
|
||
const Menuitems = [ | ||
{ | ||
title: "Dashbaord", | ||
title: "SIDEBAR.DASHBOARD", | ||
icon: "home", | ||
href: "/", | ||
}, | ||
{ | ||
title: "Manage Users", | ||
title: "SIDEBAR.MANAGE_USERS", | ||
icon: "user", | ||
href: "/manage-users", | ||
|
||
subOptions: [ | ||
{ | ||
title: "SIDEBAR.TEAM_LEADERS", | ||
href: "/manage-users", | ||
}, | ||
{ | ||
title: "SIDEBAR.FACILITATORS", | ||
href: "/manage-users", | ||
}, | ||
{ | ||
title: "SIDEBAR.LEARNERS", | ||
href: "/manage-users", | ||
}, | ||
|
||
], | ||
}, | ||
{ | ||
title: "Course Planner", | ||
title: "SIDEBAR.COURSE_PLANNER", | ||
icon: "calendar", | ||
href: "/course-planner", | ||
subOptions: [ | ||
{ | ||
title: "SIDEBAR.CREATE_PLAN", | ||
href: "/course-planner", | ||
}, | ||
{ | ||
title: "SIDEBAR.VIEW_PLANS", | ||
href: "/manage-users", | ||
}, | ||
], | ||
}, | ||
{ | ||
title: "Cohorts", | ||
icon: "users", | ||
href: "/cohorts", | ||
} | ||
|
||
|
||
}, | ||
]; | ||
|
||
export default Menuitems; |
Oops, something went wrong.