Skip to content
This repository has been archived by the owner on Jan 16, 2022. It is now read-only.

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

Merged
merged 4 commits into from
Dec 30, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/components/Header/HeaderLogo.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import styled from '@emotion/styled';

import Logo from '../Logo';

Expand All @@ -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 />;
Expand Down