index.tsx 1001 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { makeStyles } from '@material-ui/core'
  2. import { useState } from 'react'
  3. import ToolBar from './ToolBar'
  4. import ProfilePicture from './ProfilePicture'
  5. import ProfileMenu from './ProfileMenu'
  6. import ProfileLists from './ProfileLists'
  7. const useStyles = makeStyles({
  8. containerAbsolute: {
  9. position: 'absolute',
  10. top: 58,
  11. width: 506,
  12. borderLeft: 'solid 0.5px #9c9c9c',
  13. maxHeight: '905px',
  14. minHeight: '905px',
  15. overflowY: 'scroll',
  16. overflowX: 'hidden',
  17. backgroundColor:'#ffffff'
  18. }
  19. })
  20. const CredentialsList= () => {
  21. const classes = useStyles()
  22. const [sort, setSort] = useState<boolean>(false)
  23. const handleSort = () => setSort(!sort)
  24. return (
  25. <div>
  26. <ToolBar />
  27. <div className={classes.containerAbsolute}>
  28. <ProfilePicture />
  29. <ProfileMenu sort={sort} handleSort={handleSort}/>
  30. <ProfileLists sort={sort}/>
  31. </div>
  32. </div>
  33. )
  34. }
  35. export default CredentialsList