aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-docs/src/components/source_link.tsx
diff options
context:
space:
mode:
authorKadinsky <kandinsky454@protonmail.ch>2018-10-18 19:20:50 +0800
committerGitHub <noreply@github.com>2018-10-18 19:20:50 +0800
commit325af82217e994fdde8e904b93a76e6e3461f85a (patch)
treec51543ab9038ce0a3d42e4f0b7f6e257a2368c08 /packages/react-docs/src/components/source_link.tsx
parentea65fa4f6560264b8aee6b4b1c9272a0efa82b12 (diff)
parent47dc384ea36fecbcf01eb9b3f20936331b43a0c6 (diff)
downloaddexon-0x-contracts-325af82217e994fdde8e904b93a76e6e3461f85a.tar
dexon-0x-contracts-325af82217e994fdde8e904b93a76e6e3461f85a.tar.gz
dexon-0x-contracts-325af82217e994fdde8e904b93a76e6e3461f85a.tar.bz2
dexon-0x-contracts-325af82217e994fdde8e904b93a76e6e3461f85a.tar.lz
dexon-0x-contracts-325af82217e994fdde8e904b93a76e6e3461f85a.tar.xz
dexon-0x-contracts-325af82217e994fdde8e904b93a76e6e3461f85a.tar.zst
dexon-0x-contracts-325af82217e994fdde8e904b93a76e6e3461f85a.zip
Merge pull request #1154 from 0xProject/dev-section-redesign
[BASE_BRANCH] Developer section redesign
Diffstat (limited to 'packages/react-docs/src/components/source_link.tsx')
-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>
);
};