mirror of
https://github.com/SomboChea/ui
synced 2026-01-20 01:55:56 +07:00
* 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:
committed by
Juan Picado @jotadeveloper
parent
d554049699
commit
544b999f81
@@ -1,4 +1,5 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import styled from '@emotion/styled';
|
||||||
|
|
||||||
import Logo from '../Logo';
|
import Logo from '../Logo';
|
||||||
|
|
||||||
@@ -8,7 +9,14 @@ interface Props {
|
|||||||
|
|
||||||
const HeaderLogo: React.FC<Props> = ({ logo }) => {
|
const HeaderLogo: React.FC<Props> = ({ logo }) => {
|
||||||
if (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 />;
|
return <Logo />;
|
||||||
|
|||||||
Reference in New Issue
Block a user