aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/components/source_link.tsx
diff options
context:
space:
mode:
authorfragosti <francesco.agosti93@gmail.com>2018-10-20 00:18:43 +0800
committerfragosti <francesco.agosti93@gmail.com>2018-10-20 00:19:37 +0800
commit6f2217570f0dd7060cf208da32b18c52c9798871 (patch)
tree0bd34b345ef58cc6156f700b93b44cd5f32ea420 /packages/react-docs/src/components/source_link.tsx
parent91ca80b248ac75b0d8258dd4dfc7a6e0c36c572b (diff)
parent669ea191a5e34ec704851377ee5eedb03c2d1538 (diff)
downloaddexon-0x-contracts-6f2217570f0dd7060cf208da32b18c52c9798871.tar
dexon-0x-contracts-6f2217570f0dd7060cf208da32b18c52c9798871.tar.gz
dexon-0x-contracts-6f2217570f0dd7060cf208da32b18c52c9798871.tar.bz2
dexon-0x-contracts-6f2217570f0dd7060cf208da32b18c52c9798871.tar.lz
dexon-0x-contracts-6f2217570f0dd7060cf208da32b18c52c9798871.tar.xz
dexon-0x-contracts-6f2217570f0dd7060cf208da32b18c52c9798871.tar.zst
dexon-0x-contracts-6f2217570f0dd7060cf208da32b18c52c9798871.zip
Merge branch 'development' of https://github.com/0xProject/0x-monorepo into feature/instant/discharge
Diffstat (limited to 'packages/react-docs/src/components/source_link.tsx')
-rw-r--r--packages/react-docs/src/components/source_link.tsx10
1 files changed, 5 insertions, 5 deletions
diff --git a/packages/react-docs/src/components/source_link.tsx b/packages/react-docs/src/components/source_link.tsx
index 3096ad8d5..6459824c2 100644
--- a/packages/react-docs/src/components/source_link.tsx
+++ b/packages/react-docs/src/components/source_link.tsx
@@ -1,5 +1,5 @@
-import { colors } from '@0xproject/react-shared';
-import { Source } from '@0xproject/types';
+import { colors, Link } from '@0x/react-shared';
+import { Source } from '@0x/types';
import * as React from 'react';
export interface SourceLinkProps {
@@ -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>
);
};