Checkout Pro Version

Change Logo

Change Logo

To change logo : /main/src/layouts/full/shared/logo/Logo.tsx
Put the logo image into the assets/images/logos folder.
                    
import { FC, useContext } from 'react';
import { Link } from 'react-router';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { ReactComponent as LogoDark } from 'src/assets/images/logos/dark-logo.svg';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { ReactComponent as LogoDarkRTL } from 'src/assets/images/logos/dark-rtl-logo.svg';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { ReactComponent as LogoLight } from 'src/assets/images/logos/light-logo.svg';
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
import { ReactComponent as LogoLightRTL } from 'src/assets/images/logos/light-logo-rtl.svg';
import { styled } from '@mui/material';
import config from 'src/context/config';
import { CustomizerContext } from 'src/context/CustomizerContext';
                              
const Logo: FC = () => {
  const { isCollapse, isSidebarHover, activeDir, activeMode } = useContext(CustomizerContext);
  const TopbarHeight = config.topbarHeight;
      
  const LinkStyled = styled(Link)(() => ({
    height: TopbarHeight,
    width: isCollapse == "mini-sidebar" && !isSidebarHover ? '40px' : '180px',
    overflow: 'hidden',
    display: 'block',
  }));
                              
if (activeDir === 'ltr') {
  return (
    <LinkStyled to="/" style={{
      display: 'flex',
      alignItems: 'center',
    }}>
      {activeMode === 'dark' ? (
        <LogoLight />
      ) : (
        <LogoDark />
      )}
    </LinkStyled>
  );
}
                              
  return (
    <LinkStyled to="/" style={{
      display: 'flex',
      alignItems: 'center',
        }}>
          {activeMode === 'dark' ? (
        <LogoDarkRTL />
        ) : (
          <LogoLightRTL />
        )}
      </LinkStyled>
  );
};
                    
export default Logo;
                                    
                                

Change Logo

To change logo : package/src/layouts/full/shared/logo/FullLogo.tsx
Put the logo image into the src/assets/images/logos folder.
                            
<import Logo from "/src/assets/images/logos/logo.svg">
<import { Link } from "react-router">

const FullLogo = () => {
  return (
    <Link to="/">
      <img src={Logo} alt="logo" className="block" />
    </Link>
  );
};

export default FullLogo;