1
0
mirror of https://github.com/SomboChea/ui synced 2024-12-25 21:54:26 +07:00

fix: remove whitespace from logo image - closes #374 (#400)

* fix: remove whitespace from logo image - closes #374

* test: update snapshot

Co-authored-by: Juan Picado @jotadeveloper <juanpicado19@gmail.com>
This commit is contained in:
Daniel Ruf 2019-12-30 10:12:00 +01:00 committed by Juan Picado @jotadeveloper
parent d554049699
commit 544b999f81

View File

@ -1,4 +1,5 @@
import React from 'react';
import styled from '@emotion/styled';
import Logo from '../Logo';
@ -8,7 +9,14 @@ interface Props {
const HeaderLogo: React.FC<Props> = ({ logo }) => {
if (logo) {
return <img alt="logo" height="40px" src={logo} />;
const Wrapper = styled('div')({
fontSize: 0,
});
return (
<Wrapper>
<img alt="logo" height="40px" src={logo} />
</Wrapper>
);
}
return <Logo />;