Skip to content

Commit

Permalink
chore: removes from header too
Browse files Browse the repository at this point in the history
  • Loading branch information
Cayla Hamann committed Jul 1, 2020
1 parent eb737f0 commit b54e7ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/GlobalHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import styles from './GlobalHeader.module.scss';

const GlobalHeader = ({ className }) => {
const { fileRelativePath } = useContext(PageContext);
const isComponentDoc = fileRelativePath.includes(
'src/markdown-pages/components'
);

return (
<div className={cx(styles.globalHeaderContainer, className)}>
Expand Down Expand Up @@ -58,7 +61,7 @@ const GlobalHeader = ({ className }) => {
</div>

<ul className={styles.rightSideButtons}>
{fileRelativePath && (
{fileRelativePath && !isComponentDoc && (
<li className={styles.rightSideButton}>
<ExternalLink
href={`${githubBaseUrl}/blob/master/${fileRelativePath}`}
Expand Down

0 comments on commit b54e7ee

Please sign in to comment.