feat: add conditional mation logo by default

This commit is contained in:
Ali BARIN
2023-12-14 15:58:40 +00:00
parent 78ba18b176
commit 8608431490
4 changed files with 35 additions and 7 deletions

View File

@@ -1,8 +1,7 @@
import Typography from '@mui/material/Typography';
import * as React from 'react';
import { FormattedMessage } from 'react-intl';
import CustomLogo from 'components/CustomLogo/index.ee';
import DefaultLogo from 'components/DefaultLogo';
import useConfig from 'hooks/useConfig';
const Logo = () => {
@@ -13,11 +12,7 @@ const Logo = () => {
if (logoSvgData) return <CustomLogo />;
return (
<Typography variant="h6" component="h1" data-test="typography-logo" noWrap>
<FormattedMessage id="brandText" />
</Typography>
);
return <DefaultLogo />;
};
export default Logo;