aboutsummaryrefslogtreecommitdiffstats
path: root/packages/website/ts/@next/components/logo.tsx
diff options
context:
space:
mode:
authorEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-04 21:58:37 +0800
committerEzekiel Aquino <ezekiel@bakkenbaeck.no>2018-12-04 21:58:37 +0800
commit4da419cf7591a8beb32fb5e41e31b129c5fbb99f (patch)
tree54ba3d9bc3940f526b02962967e7b65eb151f206 /packages/website/ts/@next/components/logo.tsx
parent5bf7b9b8f3fb2780e56cb11fa9b9b48939a8041d (diff)
downloaddexon-0x-contracts-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.gz
dexon-0x-contracts-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.tar.zst
dexon-0x-contracts-4da419cf7591a8beb32fb5e41e31b129c5fbb99f.zip
Fixes all lint issues, cleanup
Diffstat (limited to 'packages/website/ts/@next/components/logo.tsx')
-rw-r--r--packages/website/ts/@next/components/logo.tsx9
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/website/ts/@next/components/logo.tsx b/packages/website/ts/@next/components/logo.tsx
index 5d6258f37..9f147e3fb 100644
--- a/packages/website/ts/@next/components/logo.tsx
+++ b/packages/website/ts/@next/components/logo.tsx
@@ -2,14 +2,13 @@ import * as React from 'react';
import styled from 'styled-components';
import { ThemeInterface } from 'ts/@next/components/siteWrap';
-import LogoIcon from '../icons/logo-with-type.svg';
+import LogoIcon from 'ts/@next/icons/logo-with-type.svg';
interface LogoInterface {
- light?: any;
+ isLight?: boolean;
theme?: ThemeInterface;
}
-
// Note let's refactor this
// is it absolutely necessary to have a stateless component
// to pass props down into the styled icon?
@@ -21,11 +20,11 @@ const Icon = styled(LogoIcon)`
flex-shrink: 0;
path {
- fill: ${(props: LogoInterface) => props.light ? '#fff' : props.theme.textColor};
+ fill: ${(props: LogoInterface) => props.isLight ? '#fff' : props.theme.textColor};
}
`;
-export const Logo: React.StatelessComponent<LogoInterface> = (props) => (
+export const Logo: React.StatelessComponent<LogoInterface> = (props: LogoInterface) => (
<StyledLogo>
<Icon {...props} />
</StyledLogo>