25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 
 

37 satır
906 B

  1. import PropTypes from 'prop-types';
  2. //import { Link } from 'react-router-dom';
  3. // material-ui
  4. import { ButtonBase } from '@mui/material';
  5. //import { useDispatch, useSelector } from 'react-redux';
  6. // project import
  7. import Logo from './Logo';
  8. //import config from 'config';
  9. //import { activeItem } from 'store/reducers/menu';
  10. // ==============================|| MAIN LOGO ||============================== //
  11. const LogoSection = ({ sx, /*to*/ }) => {
  12. // const { defaultId } = useSelector((state) => state.menu);
  13. // const dispatch = useDispatch();
  14. return (
  15. <ButtonBase
  16. disableRipple
  17. //component={Link}
  18. //onClick={() => dispatch(activeItem({ openItem: [defaultId] }))}
  19. //to={!to ? config.defaultPath : to}
  20. sx={sx}
  21. >
  22. <Logo />
  23. </ButtonBase>
  24. );
  25. };
  26. LogoSection.propTypes = {
  27. sx: PropTypes.object,
  28. to: PropTypes.string
  29. };
  30. export default LogoSection;