diff options
author | Fabio Berger <me@fabioberger.com> | 2018-10-03 17:52:37 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-10-03 17:52:37 +0800 |
commit | 4fb7b3515389439e1ffafebf520d0cfd84efb5d1 (patch) | |
tree | 51260dd1a1f01708a43ee647b67932c368c052f4 /packages/website/ts/components/documentation | |
parent | c07412a992284b2f3045be1c620ea2e0a351139a (diff) | |
download | dexon-sol-tools-4fb7b3515389439e1ffafebf520d0cfd84efb5d1.tar.gz dexon-sol-tools-4fb7b3515389439e1ffafebf520d0cfd84efb5d1.tar.zst dexon-sol-tools-4fb7b3515389439e1ffafebf520d0cfd84efb5d1.zip |
Convert remaining Links to new UI component
Diffstat (limited to 'packages/website/ts/components/documentation')
-rw-r--r-- | packages/website/ts/components/documentation/docs_logo.tsx | 2 | ||||
-rw-r--r-- | packages/website/ts/components/documentation/tutorial_button.tsx | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/website/ts/components/documentation/docs_logo.tsx b/packages/website/ts/components/documentation/docs_logo.tsx index 9bd742749..c16499158 100644 --- a/packages/website/ts/components/documentation/docs_logo.tsx +++ b/packages/website/ts/components/documentation/docs_logo.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { Link } from 'react-router-dom'; +import { Link } from 'ts/components/ui/link'; import { WebsitePaths } from 'ts/types'; export interface DocsLogoProps { diff --git a/packages/website/ts/components/documentation/tutorial_button.tsx b/packages/website/ts/components/documentation/tutorial_button.tsx index 7ed9c6e4e..42aa37bc7 100644 --- a/packages/website/ts/components/documentation/tutorial_button.tsx +++ b/packages/website/ts/components/documentation/tutorial_button.tsx @@ -1,7 +1,7 @@ import { colors } from '@0xproject/react-shared'; import * as _ from 'lodash'; import * as React from 'react'; -import { Link } from 'react-router-dom'; +import { Link } from 'ts/components/ui/link'; import { Text } from 'ts/components/ui/text'; import { Deco, Key, TutorialInfo } from 'ts/types'; import { Translate } from 'ts/utils/translate'; @@ -26,6 +26,7 @@ export class TutorialButton extends React.Component<TutorialButtonProps, Tutoria return ( <Link to={this.props.tutorialInfo.link.to} + shouldOpenInNewTab={this.props.tutorialInfo.link.shouldOpenInNewTab} onMouseEnter={this._onHover.bind(this)} onMouseOver={this._onHover.bind(this)} onMouseLeave={this._onHoverOff.bind(this)} |