index.tsx 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import { makeStyles } from '@material-ui/core'
  2. import ToolBar from './ToolBar'
  3. import ProfilePicture from './ProfilePicture'
  4. import ProfileMenu from './ProfileMenu'
  5. import ProfileLists from './ProfileLists'
  6. const useStyles = makeStyles({
  7. container: {
  8. backgroundColor: '#ffffff',
  9. height: '100%',
  10. width:'100%',
  11. position:'relative'
  12. },
  13. scrollContainer: {
  14. overflowY: 'scroll',
  15. maxHeight: '93vh',
  16. width: '100%',
  17. '&::-webkit-scrollbar': {
  18. width: '0.4em'
  19. },
  20. '&::-webkit-scrollbar-track': {
  21. boxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)',
  22. webkitBoxShadow: 'inset 0 0 6px rgba(0,0,0,0.00)',
  23. backgroundColor: '#eceeec',
  24. },
  25. '&::-webkit-scrollbar-thumb': {
  26. backgroundColor: '#ccc8c8',
  27. },
  28. "&::-webkit-scrollbar-thumb:focus": {
  29. backgroundColor: "#959595",
  30. },
  31. "&::-webkit-scrollbar-thumb:active": {
  32. backgroundColor: "#959595",
  33. },
  34. },
  35. })
  36. const CredentialsList = () => {
  37. const classes = useStyles()
  38. return (
  39. <div className={classes.container}>
  40. <ToolBar />
  41. <div className={classes.scrollContainer}>
  42. <ProfilePicture />
  43. <ProfileMenu />
  44. <ProfileLists />
  45. </div>
  46. </div>
  47. )
  48. }
  49. export default CredentialsList