chore: version is added in the src of Logo (#1039)

This commit is contained in:
palash-signoz 2022-05-03 21:24:02 +05:30 committed by GitHub
parent eae97d6ffc
commit bdf9333dcf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ import {
} from './styles';
function HeaderContainer({ toggleDarkMode }: Props): JSX.Element {
const { isDarkMode, user } = useSelector<AppState, AppReducer>(
const { isDarkMode, user, currentVersion } = useSelector<AppState, AppReducer>(
(state) => state.app,
);
const [isUserDropDownOpen, setIsUserDropDownOpen] = useState<boolean>();
@ -128,8 +128,10 @@ function HeaderContainer({ toggleDarkMode }: Props): JSX.Element {
style={{ display: 'flex', alignItems: 'center', gap: '8px' }}
to={ROUTES.APPLICATION}
>
<img src="/signoz.svg" alt="SigNoz" />
<Typography.Title style={{ margin: 0, color: '#DBDBDB' }} level={4}>
<img src={`/signoz.svg?currentVersion=${currentVersion}`} alt="SigNoz" />
<Typography.Title style={{ margin: 0 , color: '#DBDBDB'}} level={4}>
SigNoz
</Typography.Title>
</NavLink>