Merge pull request #246 from filecoin-project/@gndclouds/view-source-url

fixed view source url path
This commit is contained in:
CAKE 2020-09-10 08:27:38 -07:00 committed by GitHub
commit dba3367569
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,9 +26,7 @@ export default class ViewSourceLink extends React.Component {
return ( return (
<a <a
css={STYLES_VIEW_SOURCE_LINK} css={STYLES_VIEW_SOURCE_LINK}
href={`https://github.com/filecoin-project/slate/blob/main/pages/${ href={`https://github.com/filecoin-project/slate/blob/main/pages/_/${this.props.file}`}
this.props.file
}`}
target="_blank" target="_blank"
> >
<SVG.ExpandBox height="12px" style={{ marginRight: 2 }} /> View Source <SVG.ExpandBox height="12px" style={{ marginRight: 2 }} /> View Source