diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-05 20:54:37 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-05 20:54:37 +0800 |
commit | 5f2cd33da07a7acc65f2e05acb35755f74af75a4 (patch) | |
tree | 13a3453c5104357568b70f4fec6f124dcbb492b9 /packages/website/ts/components/dropdowns | |
parent | e0355a2e395fc056fd1d5c5e1780784853546acd (diff) | |
download | dexon-sol-tools-5f2cd33da07a7acc65f2e05acb35755f74af75a4.tar.gz dexon-sol-tools-5f2cd33da07a7acc65f2e05acb35755f74af75a4.tar.zst dexon-sol-tools-5f2cd33da07a7acc65f2e05acb35755f74af75a4.zip |
Remove style prop from Link
Diffstat (limited to 'packages/website/ts/components/dropdowns')
-rw-r--r-- | packages/website/ts/components/dropdowns/developers_drop_down.tsx | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/packages/website/ts/components/dropdowns/developers_drop_down.tsx b/packages/website/ts/components/dropdowns/developers_drop_down.tsx index ac1d82c75..e3039420e 100644 --- a/packages/website/ts/components/dropdowns/developers_drop_down.tsx +++ b/packages/website/ts/components/dropdowns/developers_drop_down.tsx @@ -119,14 +119,7 @@ export class DevelopersDropDown extends React.Component<DevelopersDropDownProps, <div>{this._renderLinkSection(usefulLinksToLinkInfo)}</div> </div> </div> - <Link - to={WebsitePaths.Docs} - style={{ - color: colors.lightBlueA700, - fontWeight: 'bold', - fontSize: 14, - }} - > + <Link to={WebsitePaths.Docs} fontColor={colors.lightBlueA700}> <div style={{ padding: '0.9rem', @@ -134,6 +127,8 @@ export class DevelopersDropDown extends React.Component<DevelopersDropDownProps, backgroundColor: colors.lightBgGrey, borderBottomLeftRadius: 4, borderBottomRightRadius: 4, + fontWeight: 'bold', + fontSize: 14, }} > {this.props.translate.get(Key.ViewAllDocumentation, Deco.Upper)} @@ -159,10 +154,6 @@ export class DevelopersDropDown extends React.Component<DevelopersDropDownProps, ); } private _renderLinkSection(links: ALink[]): React.ReactNode { - const linkStyle: React.CSSProperties = { - color: colors.lightBlueA700, - fontFamily: 'Roboto, Roboto Mono', - }; const numLinks = links.length; let i = 0; const renderLinks = _.map(links, (link: ALink) => { @@ -179,8 +170,10 @@ export class DevelopersDropDown extends React.Component<DevelopersDropDownProps, const linkText = this.props.translate.get(link.title as Key, Deco.Cap); return ( <div className={`pr1 pt1 ${!isLast && 'pb1'}`} key={`dev-dropdown-link-${link.title}`}> - <Link to={to} type={type} shouldOpenInNewTab={!!link.shouldOpenInNewTab} style={linkStyle}> - {linkText} + <Link to={to} type={type} shouldOpenInNewTab={!!link.shouldOpenInNewTab}> + <Text fontFamily="Roboto, Roboto Mono" fontColor={colors.lightBlueA700}> + {linkText} + </Text> </Link> </div> ); |