aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/components
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-10-05 20:54:37 +0800
committerFabio Berger <me@fabioberger.com>2018-10-05 20:54:37 +0800
commit5f2cd33da07a7acc65f2e05acb35755f74af75a4 (patch)
tree13a3453c5104357568b70f4fec6f124dcbb492b9 /packages/react-docs/src/components
parente0355a2e395fc056fd1d5c5e1780784853546acd (diff)
downloaddexon-sol-tools-5f2cd33da07a7acc65f2e05acb35755f74af75a4.tar
dexon-sol-tools-5f2cd33da07a7acc65f2e05acb35755f74af75a4.tar.gz
dexon-sol-tools-5f2cd33da07a7acc65f2e05acb35755f74af75a4.tar.bz2
dexon-sol-tools-5f2cd33da07a7acc65f2e05acb35755f74af75a4.tar.lz
dexon-sol-tools-5f2cd33da07a7acc65f2e05acb35755f74af75a4.tar.xz
dexon-sol-tools-5f2cd33da07a7acc65f2e05acb35755f74af75a4.tar.zst
dexon-sol-tools-5f2cd33da07a7acc65f2e05acb35755f74af75a4.zip
Remove style prop from Link
Diffstat (limited to 'packages/react-docs/src/components')
-rw-r--r--packages/react-docs/src/components/source_link.tsx8
1 files changed, 4 insertions, 4 deletions
diff --git a/packages/react-docs/src/components/source_link.tsx b/packages/react-docs/src/components/source_link.tsx
index 3096ad8d5..c6dd09adb 100644
--- a/packages/react-docs/src/components/source_link.tsx
+++ b/packages/react-docs/src/components/source_link.tsx
@@ -1,4 +1,4 @@
-import { colors } from '@0xproject/react-shared';
+import { colors, Link } from '@0xproject/react-shared';
import { Source } from '@0xproject/types';
import * as React from 'react';
@@ -13,9 +13,9 @@ export const SourceLink = (props: SourceLinkProps) => {
const sourceCodeUrl = `${props.sourceUrl}/${src.fileName}#L${src.line}`;
return (
<div className="pt2" style={{ fontSize: 14 }}>
- <a href={sourceCodeUrl} target="_blank" className="underline" style={{ color: colors.grey }}>
- Source
- </a>
+ <Link to={sourceCodeUrl} shouldOpenInNewTab={true} textDecoration="underline" fontColor={colors.grey}>
+ {'Source'}
+ </Link>
</div>
);
};