Remove style prop from Link

This commit is contained in:
Fabio Berger
2018-10-05 13:54:37 +01:00
parent e0355a2e39
commit 5f2cd33da0
13 changed files with 56 additions and 64 deletions

View File

@@ -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>
);
};