Files
worklenz/worklenz-frontend/src/features/navbar/navbar-logo.tsx
chamiakJ 05ab135ed2 feat(assets): add light and dark mode logos for improved branding
- Introduced new logo images for both light and dark modes, enhancing the visual consistency of the application.
- Updated references in AuthPageHeader, NavbarLogo, AccountSetup, and ProjectViewInsights components to use the new logo images.
2025-05-15 07:22:56 +05:30

29 lines
840 B
TypeScript

import { Link } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
import logo from '@/assets/images/worklenz-light-mode.png';
import logoDark from '@/assets/images/worklenz-dark-mode.png';
import { useAppSelector } from '@/hooks/useAppSelector';
import { useSelector } from 'react-redux';
import { RootState } from '@/app/store';
const NavbarLogo = () => {
const { t } = useTranslation('navbar');
const themeMode = useSelector((state: RootState) => state.themeReducer.mode);
return (
<Link to={'/worklenz/home'}>
<div style={{ position: 'relative', display: 'inline-block' }}>
<img
src={themeMode === 'dark' ? logoDark : logo}
alt={t('logoAlt')}
style={{ width: '100%', maxWidth: 140 }}
/>
</div>
</Link>
);
};
export default NavbarLogo;