diff options
author | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-03 19:19:50 +0800 |
---|---|---|
committer | Ezekiel Aquino <ezekiel@bakkenbaeck.no> | 2018-12-03 19:19:50 +0800 |
commit | 7f77347ea4537b66f045140bd5aa1995c3b2d948 (patch) | |
tree | 8d9e26289bb52296a1ad51a2ca1add55e87c60c2 /packages/website/ts/@next/components/logo.tsx | |
parent | 9ed30fbcca669d27ba56ccadc1597ab41129ca73 (diff) | |
download | dexon-sol-tools-7f77347ea4537b66f045140bd5aa1995c3b2d948.tar dexon-sol-tools-7f77347ea4537b66f045140bd5aa1995c3b2d948.tar.gz dexon-sol-tools-7f77347ea4537b66f045140bd5aa1995c3b2d948.tar.bz2 dexon-sol-tools-7f77347ea4537b66f045140bd5aa1995c3b2d948.tar.lz dexon-sol-tools-7f77347ea4537b66f045140bd5aa1995c3b2d948.tar.xz dexon-sol-tools-7f77347ea4537b66f045140bd5aa1995c3b2d948.tar.zst dexon-sol-tools-7f77347ea4537b66f045140bd5aa1995c3b2d948.zip |
Changes boolean props to follow is[Property] syntax
Diffstat (limited to 'packages/website/ts/@next/components/logo.tsx')
-rw-r--r-- | packages/website/ts/@next/components/logo.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/website/ts/@next/components/logo.tsx b/packages/website/ts/@next/components/logo.tsx index 0b98fcf9d..5d6258f37 100644 --- a/packages/website/ts/@next/components/logo.tsx +++ b/packages/website/ts/@next/components/logo.tsx @@ -1,11 +1,12 @@ 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'; interface LogoInterface { - // showType: boolean; light?: any; + theme?: ThemeInterface; } @@ -20,7 +21,7 @@ const Icon = styled(LogoIcon)` flex-shrink: 0; path { - fill: ${props => props.light ? '#fff' : props.theme.textColor}; + fill: ${(props: LogoInterface) => props.light ? '#fff' : props.theme.textColor}; } `; |